window.open("aaa.htm",mainfram); 不确定
[mainfram].location.href="aaa.htm"; 也不确定
[mainfram].location.href="aaa.htm"; 也不确定
解决方案 »
- 想让页面加载时指定的文本框自动获得焦点
- 面向对象JS
- 用window.open('http://www.ziyuan918.cn')弹出窗口时,能把'http://www.ziyuan918.cn'改为QQ群吗?[
- 寻求无ActiveX打印方案
- 修改超链接里的文字
- 介绍给大家一个好的看代码的软件: SourceFormatX
- div+无限循环问题(感觉挺难的,希望大家帮帮忙)
- js如何取得.net控件的值?
- 如何知道JS页面的执行时间?
- 在ASP+vbscript/javascript中,如何实现数据表格的图表化,就像股票的走势图,或者直方图等等,请赐教!!
- 请问如何将javascript中的值传递到falsh的action script 中!!!!
- 請問這里有做IE5和Netscape4.7兼容版本網頁程序的高手嗎?
我的网页是有框架的。
当前页是leftframe
<script>
location.href="aaa.htm";
</script>2
window.open("aaa.htm",mainfram,"");
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.
document.all.mainfram.src = 'aaa.htm';
<input type=button onclick="top.mainfram.location.href='aaa.htm'" value="Jump">