📄 day3_2.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><font size="3">窗口操作介绍</font></strong> <p><font size="3">在学习如何在<font face="宋体">JavaScript</font>中打开窗口前,你应已经知道如何<br> 在<font face="宋体">HTML</font>中打开它了。多数当前流行的浏览器中<font face="宋体">, </font>你可用一个<font face="宋体"><tt>href</tt><br> </font>语句打开一个新窗口,例如,点击<a target="yer_new_window" href="javascript:if(confirm('http://www.hotwired.com/webmonkey/98/03/files3a/yer_new_window.html \n\n文件并未依 Teleport Pro 取回,因为 它的域或路径超过开始网址中设置的范围。 \n\n你要从服务器上打开它吗?'))window.location='http://www.hotwired.com/webmonkey/98/03/files3a/yer_new_window.html'" tppabs="http://www.hotwired.com/webmonkey/98/03/files3a/yer_new_window.html">本连接</a>即可打开另一个窗口<font face="宋体">。 </font></font></p> <font size="3"><p><font face="宋体">HTML </font>是这样作的<font face="宋体">:</font></p> </font><p><big><font face="宋体">clicking on <a <br> href="yer_new_window.html" target="yer_new_window">this <br> link</a> will open another window.<br> </font></big></p> <p><font size="3">重要的是要了解目标链接打开的窗口是上面名为<br> <font face="宋体">"yer_new_window"</font> 相伴的窗口。一旦你已经有了一个以<br> <font face="宋体">"yer_new_window"</font>作为目标的<font face="宋体">herf,</font>那么,请先关闭它。无论你<br> 在<font face="宋体">URL</font>中置入何种链接,都将打开原来的窗口。想了解外的意<br> 思吗?点击<a target="yer_new_window" href="javascript:if(confirm('http://www.hotwired.com/webmonkey/98/03/files3a/yer_new_window.html \n\n文件并未依 Teleport Pro 取回,因为 它的域或路径超过开始网址中设置的范围。 \n\n你要从服务器上打开它吗?'))window.location='http://www.hotwired.com/webmonkey/98/03/files3a/yer_new_window.html'" tppabs="http://www.hotwired.com/webmonkey/98/03/files3a/yer_new_window.html">这里</a>,然后<a target="yer_new_window" href="javascript:if(confirm('http://www.hotwired.com/webmonkey/98/03/files3a/html_window_2.html \n\n文件并未依 Teleport Pro 取回,因为 它的域或路径超过开始网址中设置的范围。 \n\n你要从服务器上打开它吗?'))window.location='http://www.hotwired.com/webmonkey/98/03/files3a/html_window_2.html'" tppabs="http://www.hotwired.com/webmonkey/98/03/files3a/html_window_2.html">打开另一个<font face="宋体">HTML </font>页</a></font></p> <font size="3"><p>本课的目的是调用目标名,本例中即窗口名<tt><font face="宋体">yer_new_window</font>。</tt></p> <p><tt>既然我们已经简单的重温了一下<font face="宋体">href</font></tt>目标<font face="宋体">, </font>那么该开始学习在<br> <a href="day3_3.html" tppabs="http://sun150-2.fimmu.edu.cn/doing/js1/day3_3.html"><font face="宋体">JavaScript</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_2.html" tppabs="http://sun150-2.fimmu.edu.cn/doing/js1/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><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><font size="2" face="宋体"> </font><a href="day3_3.html" tppabs="http://sun150-2.fimmu.edu.cn/doing/js1/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><a href="day3_4.html" tppabs="http://sun150-2.fimmu.edu.cn/doing/js1/day3_4.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><a href="day3_5.html" tppabs="http://sun150-2.fimmu.edu.cn/doing/js1/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://sun150-2.fimmu.edu.cn/doing/js1/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://sun150-2.fimmu.edu.cn/doing/js1/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://sun150-2.fimmu.edu.cn/doing/js1/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://sun150-2.fimmu.edu.cn/doing/js1/day3_9.html"><font size="3">再谈</font><font size="2" face="宋体"><b>JavaScript 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://sun150-2.fimmu.edu.cn/doing/js1/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://sun150-2.fimmu.edu.cn/doing/js1/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://sun150-2.fimmu.edu.cn/doing/js1/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://sun150-2.fimmu.edu.cn/doing/js1/day3_13.html"><font size="3">第三天复习</font></a></p> <p align="left"><font face="宋体" size="3">[<a href="index.html" tppabs="http://sun150-2.fimmu.edu.cn/doing/js1/index.html">第1课</a>][<a href="day2_1.html" tppabs="http://sun150-2.fimmu.edu.cn/doing/js1/day2_1.html">第2课</a>][第3课][<a href="day4_1.html" tppabs="http://sun150-2.fimmu.edu.cn/doing/js1/day4_1.html">第4课</a>][<a href="day5_1.html" tppabs="http://sun150-2.fimmu.edu.cn/doing/js1/day5_1.html">第5课</a>]</font></p> <hr align="left"> <p><font size="2">本文由<a href="javascript:if(confirm('http://chd.126.com/ \n\n文件并未依 Teleport Pro 取回,因为 它的域或路径超过开始网址中设置的范围。 \n\n你要从服务器上打开它吗?'))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\n文件并未依 Teleport Pro 取回,因为 它的域或路径超过开始网址中设置的范围。 \n\n你要从服务器上打开它吗?'))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\n文件并未依 Teleport Pro 取回,因为 它的域或路径超过开始网址中设置的范围。 \n\n你要从服务器上打开它吗?'))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 + -