javascript当中window open用法

window.open
马克- to-win:马克 java社区:防盗版实名手机尾号: 73203。



例 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 onloadq()
        {
            /*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 = onloadq;
        //-->
    </SCRIPT>
</HEAD>

<BODY>
The onload event
</BODY>
</HTML>