javascript当中window open用法

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 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>

更多内容请见原文,文章转载自:https://blog.csdn.net/qq_43650923/article/details/102161695

posted @ 2021-11-26 12:18  malala  阅读(15)  评论(0编辑  收藏  举报