在onclick事件中写top.leftframe.location.href=left.html

解决方案 »

  1.   

    怎么不行啊?各位,教教我咯!
    我现在本身就有一个页面在mainframe中显示,叫做a.htm,在a.htm中的一个地方设置返回的超链接,如下:
    <a href =# onclick=return_page()>返回</a>
    我想在return_page()这个函数中设置点击返回是会链接到一个b.htm,而且b.htm也在mainframe中显示,在函数中我该怎么写呢?
      

  2.   

    <a href="left.html" target="leftframe">返回</a>
      

  3.   

    <a href="#" onclick="window.open('left.html','leftframe');return false">返回</a>
      

  4.   

    这样不行啊,我要的是在mainframe中显示,而且用onclick事件,window.open()是打开一个新的窗口而已。
      

  5.   

    还是用form吧:<form name=form1>
    </form><script language=vbs>
     sub button1_onclick()
       form1.action="left.htm"
       form1.target="leftframe"
       form1.submit
     end sub
    </script>