1、后退 前进
<input type="button" value="后退" on
<input type="button" value="前进" on
2、返回
<form><input type="button" value="返回上一步" on
3、查看源码
<input type="button" name="view" value="查看源码" on
4、禁止查看源码
<body on
5、刷新按钮一
<input type="button" value="刷新按钮一" on
<script>function ReloadButton(){location.href="i001.htm";}</script>
刷新按钮二
<input type="button" value="刷新按钮二" on
6、回首页按钮
<input type="button" value="首页" on
<script>function HomeButton(){location.href=http://www.winliuxq.com;}</script>
7、弹出警告框
<input type="button" value="弹出警告框" on
<script>function AlertButton(){window.alert("要多多光临呀!");}</script>
8、状态栏信息
<input type="button" value="状态栏信息" on
<script>function StatusButton(){window.status="要多多光临呀!";}</script>
9、背景色变换
<form><input type="button" value="背景色变换" on
<script>function BgButton(){
if (document.bgColor=='#00ffff')
{document.bgColor='#ffffff';}
else{document.bgColor='#00ffff';}
}
</script>
10、打开新窗口
<input type="button" value="打开新窗口" on
<script>function NewWindow(){window.open("c01.htm","","height=240,width=340,status=no,location=no,toolbar=no,directories=no,menubar=no");}
</script>
11、窗口最小化
<OBJECT id="min" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><PARAM name="Command" value="Minimize"></OBJECT><button on
12、全屏代码
<input type="BUTTON" name="FullScreen" value="全屏显示" on
13、关闭窗口
<OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="Close"></object><input type="button" value="关闭窗口" on
关闭窗口
<input type=button value=关闭窗口 on
14、最大化
<object id=big classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Maximize"></object><input type=button value=最大化 on
15、关闭输入法
<input style="ime-mode:disabled" value=关闭输入法>
16、链接按钮1
<input type="button" value="链接按钮1" on
链接按钮2
<input type="BUTTON" NAME="Button" value="链接按钮2" on
链接按钮3
<input type="submit" value="链接按钮3" on
17、警告框显示源代码
<BUTTON on
18、点击后按钮清空
<input type=button value='打印' on
19、打印
<input type=button value='打印' on
20、打印预览
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=0></OBJECT>
<input type=button value=打印预览 on
21、另存为
<input on
22、点击自动复制
<script>function oCopy(obj){obj.select();js=obj.createTextRange();js.execCommand("Copy")}</script>
<input type="text" value="点击自动复制" on
23、自动选中
<input value="自动选中" on
24、打开源代码
<BUTTON on
25、新窗口延迟打开
<input type=button value=新窗口延迟打开 on
26、实现选中文本框里的前一半的内容
<input type="text" value="选中文本框里的前一半的内容" size=30 on
<input type="text" value="选中部分内容,非IE可以用这个" size=30 on
27、点击清空文字
<input type="text" name="artist" size=14 value="点击清空文字" on
点击清空文字
<input name=name size=11 value=点击清空文字 on
28、等于标题(title):
<input type="text" value="" id="aa" size="20">
<script>document.getElementById("aa").value=document.title;</script>
29、检测IE是否脱机
<input type="button" value="测试" on
30、11种刷新按钮的方法
<input type=button value=刷新 on
<input type=button value=刷新 on
<input type=button value=刷新 on
<input type=button value=刷新 on
<input type=button value=刷新 on
<input type=button value=刷新 on
<input type=button value=刷新 on
<input type=button value=刷新 on
<input type=button value=刷新 on
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>
<form act
<a id=a1 href="自身的文件"></a><input type=button value=刷新 on
31、
<a href="#" on
32、
<a on
33、
<a href="#" on
34、
<a href="#" on
35、
<a href="#" on
<a href="javas
36、
<a href=mailto:429752806@163.com>发送E-mail</a>
37、
<a href="#" on
38、
<a href="#" on
39、
<a href="#" on
40、
<a href="#" on
41、
<a href="#" on
42、
<a href="#" on
43、
<a href="#" on
44、
<a href="#" on
<a href="#" on
<a href="#" on
<a href="#" on
45、
<a href="#" on
<SPAN on
<a href="#" on
<a href="javas
<a href="#" on
<a href="#" on
46、
<a href="javas
<a href="#" on
<a href="#" on
<script>
function shutwin(){
window.close();
return;}
</script>
<a href="javas
47、<SPAN on
48、等于标题栏:<script>document.write(document.title);</script>
49、
<a href="javas
<a href="javas
<a href=javas
50、
<a href="i003.htm" on
51、
<style>#close a:hover {background:url(javas
52、
<A HREF="javas
53、滚动条在左侧,将<html>改为<HTML DIR="RTL">
54、网页半透明
<body style="filter:Alpha(Opacity=50)">
55、随机选择背景色
<body>
<script>
document.body.style.background=(["red","blue","pink","navy","gray","yellow","green","purple"])[parseInt(Math.random()*8)];
</script>
56、框架页中不显示滚动条:
<SCRIPT>
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
</SCRIPT>
57、防止网页被框架
<SCRIPT LANGUAGE=JAVAS
if (top.location !== self.location) {
top.location=self.location;
}
</SCRIPT>
58、永远都会带着框架
<script language="javas
if (window == top)top.location.href = "frame.htm"; //frame.htm为框架网页
// --></script>
59、窗口自动最大化
<script language="JavaS
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
//--></script>
60、打开窗口自动最大化
<OBJECT classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" on
61、爽眼闪屏代码
<script>var color = new Array;color[1] = "black";color[2] = "white";for(x = 0; x <3; x++){document.bgColor = color[x];if(x == 2){x = 0;}}</script>
62、不能被另存为
<noscript><iframe src=*.html></iframe></noscript>
63、汉字字库调用
<script>
for(i=19968;i<40870;i++)document.write(String.fromCharCode(i));
</script>
64、显示现在时间的脚本
<script language=vbscript>document.write now</script>
65、显示最后修改时间的脚本
<script>document.write(document.lastModified)</script>
66、按下F12键,直接返回首页
<script>function look(){
if(event.keyCode==123){document.location.href=http://www.winliuxq.com/}
}
if(document.on
{document.on
</script>
67、端口检测
<img src="http://www.winliuxq/zza.jpg" on
68、无法最小化的窗口
<body on
69、链接点外部css文件
<style>@imp
70、内嵌式框架-网页中调用另外网页:
<object type="text/x-scriptlet" width="600" height="1000" da
71、刷新改变窗口大小
<OBJECT classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" on
72、JavaS
<script>hei=120;d1=2;d2=2;cou=Math.floor(hei/(d1+d2));
document.write('<table cellspacing=0 cellpadding=0 width=1 height='+hei+'>');
for(i=0;i<cou;i++){document.write('<tr><td height='+d2+'><tr><td height='+d1+' bgcolor=333333>')}</script></table>
73、js翻页
<script>document.write("<a href="+location.href.replace(/\.html/g,"_2.html")+">2</a>");</script>