try:
top.frames.main.src=main.asp

解决方案 »

  1.   

    to  xzq686(瞬):
    在关闭按钮调用closeme(),可以吗?function closeme()
    {

    top.frames.main.src=main.asp;
    window.close();
    }
      

  2.   

    top.frames.后面没有main选项,只有item和lenth两项的,没有别的。
      

  3.   

    让main.asp不允许缓存。按钮的事件就是用window.open,target指向main。反正只要回到main.asp就可以了,不一定非要真的关闭吧
      

  4.   

    to: zmhqyw(炎舞)具体说一下如何写代码呀?
      

  5.   

    这个问题上面表达的有问题,应该是这样说的:第一个页面的框架网页代码如下:<frameset cols="7,50%,9">
       <frame name="mainleft" src="bottom/welleft.asp" marginwidth="0" marginheight="0" scrolling="no" noresize>
       <frame name="main" src="main.asp" scrolling="auto">
       <frame name="mainrig" src="bottom/welrig.asp" marginwidth="0" marginheight="0" scrolling="no" noresize>
    </frameset>我在main.asp的页面转向了另外的后个页面(update.asp),不是用window.open()新打开的窗口,现在我想在update.asp页面上,点击“关闭”按钮,直接跳转到"main.asp"页面,让其重新载入。请问在“关闭”按钮如何写脚本来实现这功能?
      

  6.   

    update.asp 页面里使用document.location.href="main.asp";
    不可以使用window.location.href="main.asp";否则整个页面都是main.asp
      

  7.   

    <input type="button" name="a" onclick="window.location.href='main.asp'">
    是不是这个意思?