javascript当中window open用法

2021/11/26 14:09:57

本文主要是介绍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 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



这篇关于javascript当中window open用法的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程