在frame.htm下写上...function getParameter(name){
var r = new RegExp("(\\?|&)*"+name+"=([^&]*)(&|$)")
var m = location.search.match(r)
if(!m || m=="") m = top.location.search.match(r)
return (!m?"":m[2]);
}bframe.src = getParameter("url");

解决方案 »

  1.   

    <html>
    <head>
    <Script>  
    function getParameter(name){
    var r = new RegExp("(\\?|&)*"+name+"=([^&]*)(&|$)")
    var m = location.search.match(r)
    if(!m || m=="") m = top.location.search.match(r)
    return (!m?"":m[2]);
    }
    //alert(getParameter("url"));
    document.bframe.src = getParameter("url");
     </Script> 
    </head>
    <frameset rows="60,*" frameborder="NO" border="0" framespacing="0"> 
      <frame name="topFrame" scrolling="NO" noresize src="http://www.baidu.com" >
      <frame name="bframe" src="">
    </frameset>
    <noframes><body bgcolor="#FFFFFF" text="#000000">
    </body></noframes>
    </html>
    按上面的写法,保存成 xxxx.htm
    访问xxxx.htm?url=http://www.baidu.com 下面显示一片空白了