您现在的位置是:首页 > 电脑技术查询 > web开发

怎么强制frame其它网页

编辑:chaxungu时间:2022-10-02 23:21:49分类:web开发

如何强制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>