当前位置: 代码迷 >> JavaScript >> 怎么强制frame其它网页
  详细解决方案

怎么强制frame其它网页

热度:255   发布时间:2012-03-07 09:13:51.0
如何强制frame其它网页?
我想在一个frameset嵌另一个网页,但那个网页里做了处理:
<html>   <head>   <title> title </title>   <script   type= "text/javascript "> <!--
if   (top.location   !=   self.location)   {   top.location   =   self.location.href;   }
//-->   </script>

这样,嵌那个网页就会失败,请问有没有办法强制frame该网页,谢谢

------解决方案--------------------
<script> var location= "never-online.net " </script>
<iframe src= "http://www.baidu.com/s?tn=myie2dg&ie=gb2312&bs=never-online&sr=&z=&cl=3&f=8&wd=never-online&ct=0 "> </iframe>
  相关解决方案