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