document.all.page_body.src="";orwindow.frames["page_body"].document.location.href="";

解决方案 »

  1.   

    <!--frame.htm-->
    <html>
    <head>
    <title>frame</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script language="JavaScript">
    function start()
    {
        frames["page_body"].location.href = "http://www.cnn.com";
    }
    </script>
    </head>
    <frameset rows="71,158" onload="start()"> 
    <frame name="page_body" src=我想指定的页面 noresize frameborder="NO">
    <frame name="page_footer" src="footer.htm" noresize frameborder="NO">
    </frameset>
    </html>
      

  2.   

    orfunction start()
    {
         document.all.tags("FRAME")[0].src="http://www.cnn.com";
    }