5.window.open
例 5.1(onload&onunloadIEFF.html)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<SCRIPT LANGUAGE="JavaScript">
<!--
function onl oadq()
{
/*aNewWindow = myWindow.open(aURL, aName, aFeatureList), aFeatureList A list of attributes for the new window
aName The name of a new or existing target window
aURL A URL to load into the window
*/
window.open("adv.html", "", "WIDTH=600,HEIGHT=600,left=0,top=0");
}
window.onload = onl oadq;
//-->
</SCRIPT>
</HEAD>
<BODY>
The onl oad event
</BODY>
</HTML>
更多内容请见原文,文章转载自:https://blog.csdn.net/qq_43650923/article/details/102161695
相关文章
- 09-16动态添加a标签及打开下载链接,location.href用法&&与window.open区别
- 09-16javascript当中arguments用法
- 09-16javascript(window.open)在所有浏览器中最大化,但不在chrome中
- 09-16javascript window.opener的用法分析
- 09-16JavaScript window.open()属性
- 09-16JavaScript_解决safari浏览器window.open无法实现的问题
- 09-16javascript当中二维数组用法
- 09-16javascript中window.open()与window.location.href
- 09-16javascript中window.open()与window.location.href的区别
- 09-16javascript – appendChild在IE中不使用window.open