<script type="text/javascript">
if(location.toString().indexOf("https://BLOG.TX.SB")) /*如果当前网址中没有https://blog.tx.sb/ */
{
document.location.href="https://BLOG.TX.SB"; /*跳转到https://blog.tx.sb/ */
}
else
{
/*有的话,执行代码*/ }
window.alert("HALLO");
} </script>