ch4-22-f1.htm
来自「web课件并附有习题练习还有实例详细的讲解了WEB的各种开发过程是学习 的好资料」· HTM 代码 · 共 21 行
HTM
21 行
<html><head><title>f1.htm的内容</title></head>
<body><a name="frame1"><h3>第一帧</h3></a>
<p><a href="ch4-22-f3.htm" target="Win2">单击此处</a>可在Win2中装载另一个文件。</p>
<script>window2=open("ch4-22-frame2.htm","第二个窗口");</script>
<form><input type=button value="设置Win1背景为cornsilk"
onClick="parent.Win1.document.bgColor='cornsilk'">
<input type=button value="设置Win2背景为darkred"
onClick="parent.Win2.document.bgColor='darkred'">
<input type=button value="设置Win3背景为slatblue"
onClick="parent.frames[2].document.bgColor='slatblue'">
<input type=button value="设置Win4背景为darkblue"
onClick="top.frames[3].document.bgColor='darkblue'">
<input type=button value="设置另一窗口Win1背景为cornsilk"
onClick="window2.Win1.document.bgColor='cornsilk'">
<input type=button value="设置另一窗口Win2背景为violet"
onClick="window2.Win2.document.bgColor='violet'">
<input type=button value="设置另一窗口Win3背景为pink"
onClick="window2.frames[2].document.bgColor='pink'">
<input type=button value="设置另一窗口Win4背景为yellow"
onClick="window2.frames[3].document.bgColor='yellow'">
</form></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?