posts - 495,  comments - 11,  trackbacks - 0

Use self to reference the current document

代码如下:

<html>
<head>
<script language="JavaScript" type = "text/javascript">
<!--
if (top==self)
{
     var main_frame = "http://hao123.com";
     var cur_url = self.location.href;
     var setframes = main_frame + "?" + cur_url;
     location.href = setframes;
}
//-->
</script>
</head>
<body>

</body>
</html>

posted on 2007-09-25 11:22 jadmin 阅读(38) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: