⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 day3_4.html

📁 JScript 用户指南 JavaScript 语言参考 内容 :JScript 函数 JScript 错误 JScript 方法 JScript 对象 JScript 语句 Scripting 运行
💻 HTML
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312-80">
<style type="text/css">
<!--
a:link {  color: blue; text-decoration: none}
a:visited {  color: purple; text-decoration: none}
a:hover {  color: #CC0033; text-decoration: underline}
-->
</style>
<title>JavaScript教程</title>
</head>

<body topmargin="1" leftmargin="2">

<table border="0" width="591" cellspacing="0">
  <tr>
    <td bgcolor="#ffff99" width="451">JavaScript教程 - 第三课</td>
  </tr>
  <tr>
    <td bgcolor="#FF6600" width="451"><a href="mailto:thau@wired.com">Thau</a></td>
  </tr>
</table>
<div align="left">

<table border="0" width="630" cellspacing="0">
  <tr>
    <td width="458" valign="top" align="left"><strong><small><small><br>
    </small></small><font face="宋体" size="3">第四页:</font></strong><b><font size="2"
    face="宋体">JavaScript</font></b><font size="3"><strong>中的窗口操作举例</strong> 
    <p>试一下点击如下三个链接看看将发生什么。注意在三个链接都<br>
    打开前别先关闭其中任何一个。</p>
    <p>这是名为 <font face="宋体">javascript_1</font>的窗口<font face="宋体">. </font></p>
    <p>名为<font face="宋体">javascript_2</font>的窗口<font face="宋体">. </font></p>
    <p>这里是另一个将进入<font face="宋体">javascript_1</font>的<font
    face="宋体">HTML</font>页<font face="宋体">. </font></p>
    <p>语句的首行:</p>
    </font><p><font size="2"><br>
    <font face="宋体">&lt;a href=&quot;#&quot; <br>
    <br>
    &nbsp; 
    onClick=&quot;window.open('javascript_window_1.html','javascript_1');&quot;&gt;Here's <br>
    &nbsp; a window named javascript_1&lt;/a&gt;.<br>
    <br>
    </font></font><font size="3">当你点击该链接时一个名为<font face="宋体"><tt>javascript_1</tt> 
    </font>的窗口打开,其中出<br>
    现<tt><font face="宋体">javascript_window_1.html</font>的网页。</tt>由于参数<font
    face="宋体">features</font>是可<br>
    选的,我们先不理会它。</font></p>
    <font size="3"><p>注意这里我是用<font face="宋体">onClick</font>来调用打开窗口的。你大棵不必<br>
    将<tt><font face="宋体">window.open()</font>放在<font face="宋体">onClick</font>中调用窗口,这很容易办到。一<br>
    会你将看到在<font face="宋体">&lt;script&gt;</font>标签中的<font face="宋体">windows.open()</font>例子。</tt></p>
    <p>第二个例子与第一个几乎一样的,它只是以不同的名字打开一<br>
    个窗口及调用到不同的<font face="宋体">HTML</font>页中。</p>
    </font><p><font size="2"><br>
    <font face="宋体">&lt;a href=&quot;#&quot; <br>
    <br>
    &nbsp; 
    onClick=&quot;window.open('javascript_window_2.html','javascript_2');&quot;&gt;Here's <br>
    &nbsp; a window named javascript_2&lt;/a&gt;.<br>
    <br>
    </font></font><font size="3">第三个链接将一个新的<font face="宋体">HTML </font>页放到第一个窗口中。这是由于你<br>
    要打开的窗口和第一个链接重名:都叫<font face="宋体">javascript_1.</font></font></p>
    <p><font size="2" face="宋体"><br>
    &lt;a href=&quot;#&quot; <br>
    <br>
    &nbsp; 
    onClick=&quot;window.open('javascript_window_3.html','javascript_1');&quot;&gt;Here's <br>
    &nbsp; another HTML page going into javascript_1&lt;/a&gt;.<br>
    <br>
    </font></p>
    <p><font size="3">妙事即将开始。我们加入第三个参数<font face="宋体">features</font>,看看会发生<br>
    什么。</font></p>
    <font size="3"><p><font face="宋体">OK </font>让我们加入<a href="day3_5.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_5.html"><font
    face="宋体">windows features</font></a>再试试<font face="宋体">!</font></p>
    </font><p align="left"><font face="宋体" size="3" color="#000000"><strong>JavaScript教程</strong></font><font
    color="#FF0000" face="宋体" size="3"><br>
    </font><font size="3" color="#FF0000">第</font><font color="#FF0000" face="宋体"
    size="3">一</font><font size="3" color="#FF0000">页</font><font size="2" face="宋体"> </font><a
    href="day3_4.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_4.html"><font size="3">第三天课程简介</font></a><font size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">二</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_2.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_2.html"><font size="3">窗口操作介绍</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">三</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_3.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_3.html"><font size="3"><strong>Javascript</strong>中的窗口操作</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">四</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> <b>JavaScript</b></font><font size="3">中的窗口操作举例</font><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">五</font><font size="3" color="#FF0000">页</font><a href="day3_5.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_5.html"> <font
    size="2" face="宋体"><b>Windows</b></font><font size="3">特性</font></a><font size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">六</font><font size="3" color="#FF0000">页</font><a href="day3_6.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_6.html"> <font
    size="2" face="宋体"><b>JavaScript</b></font><font size="3">文件目标模块</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">七</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_7.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_7.html"><font size="3">状态条的操作</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">八</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_8.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_8.html"><font size="3">窗口间的交流</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">九</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_9.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_9.html"><font size="3">再谈</font><font size="2"
    face="宋体"><b>JavaScript&nbsp; DOM</b></a><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">十</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_10.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_10.html"><font size="3">窗口的其它特性</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">十一</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_11.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_11.html"><font size="3">再谈</font><font size="2"
    face="宋体"><b>Window</b></font><font size="3">及</font><font size="2" face="宋体"><b>Frame</b></font><font
    size="3">树杈结构</font></a><font size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">十二</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_12.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_12.html"><font size="3">自己动手操作</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">十三</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_13.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_13.html"><font size="3">第三天复习</font></a></p>
    <p align="left"><font face="宋体" size="3">[<a href="index.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/index.html">第1课</a>][<a
    href="day2_1.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day2_1.html">第2课</a>][第3课][<a href="day4_1.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day4_1.html">第4课</a>][<a
    href="day5_1.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day5_1.html">第5课</a>]</font></p>
    <hr align="left">
    <p><font size="2">本文由<a href="javascript:if(confirm('http://chd.126.com/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://chd.126.com/'" tppabs="http://chd.126.com/" target="_blank">《</font><font
    face="verdana, arial, geneva, sans-serif" size="2">CHD</font><font size="2">的网络教室》</a>根据<a
    href="javascript:if(confirm('http://www.webmonkey.com.cn/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.webmonkey.com.cn/'" tppabs="http://www.webmonkey.com.cn/" target="_blank">《网猴》</a>相关文章改编,版权归<a
    href="javascript:if(confirm('http://www.webmonkey.com.cn/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.webmonkey.com.cn/'" tppabs="http://www.webmonkey.com.cn/" target="_blank">《网猴》</a>所有</font></td>
  </tr>
</table>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -