请教高手,看看这个问题怎么解决?
我在一个页面中有一个IFEAME框架,iframe里加载的是另一个页面。通常情况下。打开这个页面,可以看到这个页面里有一个IFAEME页面。但是不知道为什么,iframe加载的有些页面却会改变本身页面,也就是一加载这个页面直接就跳到了iframe子页面了。有什么办法不让它跳转呢?代码如下:
<html>
<body>
<iframe src="http://www.nsbmxx.com/" width="300px" height="300px" ></iframe>
</body>
</html>
------解决方案--------------------你提供的这个网站http://www.nsbmxx.com/的源代码里面的这段JS所起的作用。
<script language="JavaScript">
<!--
if (self != top) top.location.href = window.location.href
//-->
</script>
------解决方案--------------------<script language="JavaScript">
<!--
if (self != top) top.location.href = window.location.href
//-->
</script>
去掉