window.open("aaa.htm",mainfram); 不确定
[mainfram].location.href="aaa.htm"; 也不确定

解决方案 »

  1.   

    mainframe是frame
    我的网页是有框架的。
    当前页是leftframe
      

  2.   

    1
    <script>
    location.href="aaa.htm";
    </script>2
    window.open("aaa.htm",mainfram,"");
      

  3.   

    document.write("<table width=700 cellspacing=0 cellpadding=0 height=20><tr><td bgcolor=000000 align=right><font color=white><a class=white href=../index.htm>首页</a> </font></td></tr></table>");
      

  4.   

    str="<a href=\"aaa.htm\" target=\"mainfram\">go</a>";
      

  5.   


    Opens a new window and loads the document specified by a given URL, or opens a blank document if a URL is not provided.oNewWindow=window.open([sURL] [, sName] [, sFeatures] [, bReplace])其中第二个参数的说明:sName Optional. String that specifies the name of the window. This name is used as the value for the TARGET attribute on a FORM or an A element. 
    In Internet Explorer 5 and later, specifying the value _search opens sURL in the browser's search pane.
      

  6.   

    <frame id = 'mainfram
    document.all.mainfram.src = 'aaa.htm';
      

  7.   

    这样就行了.
    <input type=button onclick="top.mainfram.location.href='aaa.htm'" value="Jump">