📄 5-2.htm
字号:
<html>
<head>
<title>§5.2 几种很实用的功能按钮</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
-->
</style>
</head>
<body bgcolor="#FFFFFF">
<table width="90%" border="0">
<tr>
<td height="30">
<p>
<input onClick=NewWindow() type=button value=新开窗口 name="button1">
</p>
<script language=JavaScript>
<!--
function NewWindow(){window.open("5-2-1.htm","","height=240,width=340,status=no,location=no,toolbar=no,directories=no,menubar=no");}
// -->
</script>
</td>
<td height="30">
<input onClick=history.back() type=button value=后退一步 name="button2">
</td>
<td valign="middle" height="30">
<p>
<input onClick=history.forward() type=button value=前进一步 name="button3">
</p>
</td>
</tr>
<tr>
<td height="30">
<p>
<input onClick=history.go(0) type=button value=刷新按钮 name="button4">
</p>
</td>
<td height="30">
<p>
<input onClick=HomeButton() type=button value=返回首页 name="button5">
</p>
<script language=JavaScript><!--
function HomeButton(){location.href="http://www.coolbi.com";}
// --></script>
</td>
<td height="30">
<p>
<input onClick=AlertButton() type=button value=弹出警告框 name="button6">
</p>
<script language=JavaScript><!--
function AlertButton(){window.alert("要多多光临呀!");}
// --></script>
</td>
</tr>
<tr>
<td height="30">
<p>
<input onClick=BgButton() type=button value=背景色变换 name="button7">
</p>
<script>function BgButton(){
if (document.bgColor=='#00ffff')
{document.bgColor='#ffffff';}
else{document.bgColor='#00ffff';}
}
</script>
</td>
<td height="30">
<p>
<input onClick=StatusButton() type=button value=状态栏信息 name="button7">
</p>
<script language=JavaScript><!--
function StatusButton(){window.status="要多多光临呀!";}
// --></script>
</td>
<td height="30"> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -