Use self to reference the current document
代碼如下:
<html>
<head>
<script language="JavaScript" type = "text/javascript">
<!--
if (top==self)
{
???? var main_frame = "
???? 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 閱讀(39)
評論(0) 編輯 收藏