JavaScript小技巧一
event.srcElement.tagName
event.srcElement.type
event.srcElement.setCapture();
event.srcElement.releaseCapture();
event.keyCode
event.shiftKey
event.altKey
event.ctrlKey
event.returnValue
event.x
event.y
document.activeElement
document.captureEvents(Event.KEYDOWN);
document.all("txt").focus();
document.all("txt").select();
document.execCommand
document.cookie
document.oncontextmenu
document.createElement("SPAN");
document.elementFromPoint(event.x,event.y).tagName=="TD
document.elementFromPoint(event.x,event.y).appendChild(ms)
document.images[索引]
document.onmousedown=scrollwindow;
document.窗体.elements[索引]
document.all.xxx.detachEvent('onclick',a);
navigator.plugins
typeof($js_libpath) == "undefined"
下拉框.options[索引]
下拉框.options.length
document.getElementsByName("r1");
document.getElementById(id);
timer=setInterval('scrollwindow()',delay);
clearInterval(timer);
escape() ,unescape
obj.parentElement(dhtml)
obj.parentNode(dom)
TableID.moveRow(2,1)
document.all.csss.href = "a.css";
display:inline
hidefocus=true
style="word-break:break-all"
<meta HTTP-EQUIV="refresh" CONTENT="8;URL=http://c98.yeah.net">
<a href="mailto:aaa@bbb.com?subject=ccc&body=xxxyyy">
obj.scrollIntoView(true)
<a name="first">
<a href="#first">anchors</a>
location.search();
obj.contenteditable=true
obj.execCommand
/[^\x00-\xff]/
汉字
/[\u4e00-\u9fa5]/
word-wrap: break-word; word-break: break-all;
<IFRAME src="1.htm" width=300 height=180 allowtransparency></iframe>
obj.style.cssText
document.documentElement.innerHTML
document.styleSheets[0]
document.styleSheets[0].rules[0]
<a href="javascript:function()">word</a>
asp:
request.servervariables("HTTP_REFERER")
javascript:
document.referrer
CollectGarbage();
document.oncontextmenu = function() { return false;}
<noscript><iframe src="*.htm"></iframe></noscript>
<input type=text onpaste="return false">
<link rel="Shortcut Icon" href="favicon.ico">
favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下
<link rel="Bookmark" href="favicon.ico">
<input type=button value=查看网页源代码 onclick="window.location = 'view-source:'+ 'http://www.csdn.net/'">
<input style="ime-mode:disabled">
<input type=text name=text1 value="123" onfocus="this.select()">
<input onkeydown="if(event.keyCode==13)event.keyCode=9">
<input type=text value="123" onfocus="alert(this.defaultValue)">
obj.title = "123 sdfs "
var n1 = new Date("2004-10-10".replace(/-/g, "\/")).getTime()
win.closed
<input type=checkbox style="position: absolute; clip:rect(5px 15px 15px 5px)"><br>
document.selection.createRange().duplicate().text
<input type=text autocomplete=on>打开该功能
<input type=text autocomplete=off>关闭该功能
<body onload="window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)">
window.open("aa.htm", "meizz", "fullscreen=7");
alert(decodeURIComponent(encodeURIComponent("http://你好.com?as= hehe")))
encodeURIComponent对":"、"/"、";" 和 "?"也编码
<tr onmouseover="this.bgColor='#f0f0f0'" onmouseout="this.bgColor='#ffffff'">
//各种尺寸
s += "\r\n网页可见区域宽:"+ document.body.clientWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;
s += "\r\n网页正文全文高:"+ document.body.scrollHeight;
s += "\r\n网页被卷去的高:"+ document.body.scrollTop;
s += "\r\n网页被卷去的左:"+ document.body.scrollLeft;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;
s += "\r\n网页正文全文高:"+ document.body.scrollHeight;
s += "\r\n网页被卷去的高:"+ document.body.scrollTop;
s += "\r\n网页被卷去的左:"+ document.body.scrollLeft;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
<a name="first">
<a href="#first">anchors</a>
location.search();
obj.contenteditable=true
obj.execCommand
/[^\x00-\xff]/
汉字
/[\u4e00-\u9fa5]/
word-wrap: break-word; word-break: break-all;
<IFRAME src="1.htm" width=300 height=180 allowtransparency></iframe>
obj.style.cssText
document.documentElement.innerHTML
document.styleSheets[0]
document.styleSheets[0].rules[0]
<a href="javascript:function()">word</a>
asp:
request.servervariables("HTTP_REFERER")
javascript:
document.referrer
CollectGarbage();
document.oncontextmenu = function() { return false;}
<noscript><iframe src="*.htm"></iframe></noscript>
<input type=text onpaste="return false">
<link rel="Shortcut Icon" href="favicon.ico">
favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下
<link rel="Bookmark" href="favicon.ico">
<input type=button value=查看网页源代码 onclick="window.location = 'view-source:'+ 'http://www.csdn.net/'">
<input style="ime-mode:disabled">
<input type=text name=text1 value="123" onfocus="this.select()">
<input onkeydown="if(event.keyCode==13)event.keyCode=9">
<input type=text value="123" onfocus="alert(this.defaultValue)">
obj.title = "123 sdfs "
var n1 = new Date("2004-10-10".replace(/-/g, "\/")).getTime()
win.closed
<input type=checkbox style="position: absolute; clip:rect(5px 15px 15px 5px)"><br>
document.selection.createRange().duplicate().text
<input type=text autocomplete=on>打开该功能
<input type=text autocomplete=off>关闭该功能
<body onload="window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)">
window.open("aa.htm", "meizz", "fullscreen=7");
alert(decodeURIComponent(encodeURIComponent("http://你好.com?as= hehe")))
encodeURIComponent对":"、"/"、";" 和 "?"也编码
<tr onmouseover="this.bgColor='#f0f0f0'" onmouseout="this.bgColor='#ffffff'">
//各种尺寸
s += "\r\n网页可见区域宽:"+ document.body.clientWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;
s += "\r\n网页正文全文高:"+ document.body.scrollHeight;
s += "\r\n网页被卷去的高:"+ document.body.scrollTop;
s += "\r\n网页被卷去的左:"+ document.body.scrollLeft;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;
s += "\r\n网页正文全文高:"+ document.body.scrollHeight;
s += "\r\n网页被卷去的高:"+ document.body.scrollTop;
s += "\r\n网页被卷去的左:"+ document.body.scrollLeft;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
<meta HTTP-EQUIV="refresh" CONTENT="8;URL=http://c98.yeah.net">
<a href="mailto:aaa@bbb.com?subject=ccc&body=xxxyyy">
obj.scrollIntoView(true)
<a name="first">
<a href="#first">anchors</a>
location.search();
obj.contenteditable=true
obj.execCommand
/[^\x00-\xff]/
汉字
/[\u4e00-\u9fa5]/
word-wrap: break-word; word-break: break-all;
<IFRAME src="1.htm" width=300 height=180 allowtransparency></iframe>
obj.style.cssText
document.documentElement.innerHTML
document.styleSheets[0]
document.styleSheets[0].rules[0]
<a href="javascript:function()">word</a>
asp:
request.servervariables("HTTP_REFERER")
javascript:
document.referrer
CollectGarbage();
document.oncontextmenu = function() { return false;}
<noscript><iframe src="*.htm"></iframe></noscript>
<input type=text onpaste="return false">
<link rel="Shortcut Icon" href="favicon.ico">
favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下
<link rel="Bookmark" href="favicon.ico">
<input type=button value=查看网页源代码 onclick="window.location = 'view-source:'+ 'http://www.csdn.net/'">
<input style="ime-mode:disabled">
<input type=text name=text1 value="123" onfocus="this.select()">
<input onkeydown="if(event.keyCode==13)event.keyCode=9">
<input type=text value="123" onfocus="alert(this.defaultValue)">
obj.title = "123 sdfs "
var n1 = new Date("2004-10-10".replace(/-/g, "\/")).getTime()
win.closed
<input type=checkbox style="position: absolute; clip:rect(5px 15px 15px 5px)"><br>
document.selection.createRange().duplicate().text
<input type=text autocomplete=on>打开该功能
<input type=text autocomplete=off>关闭该功能
<body onload="window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)">
window.open("aa.htm", "meizz", "fullscreen=7");
alert(decodeURIComponent(encodeURIComponent("http://你好.com?as= hehe")))
encodeURIComponent对":"、"/"、";" 和 "?"也编码
<tr onmouseover="this.bgColor='#f0f0f0'" onmouseout="this.bgColor='#ffffff'">
//各种尺寸
s += "\r\n网页可见区域宽:"+ document.body.clientWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;
s += "\r\n网页正文全文高:"+ document.body.scrollHeight;
s += "\r\n网页被卷去的高:"+ document.body.scrollTop;
s += "\r\n网页被卷去的左:"+ document.body.scrollLeft;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;
s += "\r\n网页正文全文高:"+ document.body.scrollHeight;
s += "\r\n网页被卷去的高:"+ document.body.scrollTop;
s += "\r\n网页被卷去的左:"+ document.body.scrollLeft;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
<a name="first">
<a href="#first">anchors</a>
location.search();
obj.contenteditable=true
obj.execCommand
/[^\x00-\xff]/
汉字
/[\u4e00-\u9fa5]/
word-wrap: break-word; word-break: break-all;
<IFRAME src="1.htm" width=300 height=180 allowtransparency></iframe>
obj.style.cssText
document.documentElement.innerHTML
document.styleSheets[0]
document.styleSheets[0].rules[0]
<a href="javascript:function()">word</a>
asp:
request.servervariables("HTTP_REFERER")
javascript:
document.referrer
CollectGarbage();
document.oncontextmenu = function() { return false;}
<noscript><iframe src="*.htm"></iframe></noscript>
<input type=text onpaste="return false">
<link rel="Shortcut Icon" href="favicon.ico">
favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下
<link rel="Bookmark" href="favicon.ico">
<input type=button value=查看网页源代码 onclick="window.location = 'view-source:'+ 'http://www.csdn.net/'">
<input style="ime-mode:disabled">
<input type=text name=text1 value="123" onfocus="this.select()">
<input onkeydown="if(event.keyCode==13)event.keyCode=9">
<input type=text value="123" onfocus="alert(this.defaultValue)">
obj.title = "123 sdfs "
var n1 = new Date("2004-10-10".replace(/-/g, "\/")).getTime()
win.closed
<input type=checkbox style="position: absolute; clip:rect(5px 15px 15px 5px)"><br>
document.selection.createRange().duplicate().text
<input type=text autocomplete=on>打开该功能
<input type=text autocomplete=off>关闭该功能
<body onload="window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)">
window.open("aa.htm", "meizz", "fullscreen=7");
alert(decodeURIComponent(encodeURIComponent("http://你好.com?as= hehe")))
encodeURIComponent对":"、"/"、";" 和 "?"也编码
<tr onmouseover="this.bgColor='#f0f0f0'" onmouseout="this.bgColor='#ffffff'">
//各种尺寸
s += "\r\n网页可见区域宽:"+ document.body.clientWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;
s += "\r\n网页正文全文高:"+ document.body.scrollHeight;
s += "\r\n网页被卷去的高:"+ document.body.scrollTop;
s += "\r\n网页被卷去的左:"+ document.body.scrollLeft;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;
s += "\r\n网页正文全文高:"+ document.body.scrollHeight;
s += "\r\n网页被卷去的高:"+ document.body.scrollTop;
s += "\r\n网页被卷去的左:"+ document.body.scrollLeft;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
hidefocus=true
style="word-break:break-all"
<meta HTTP-EQUIV="refresh" CONTENT="8;URL=http://c98.yeah.net">
<a href="mailto:aaa@bbb.com?subject=ccc&body=xxxyyy">
obj.scrollIntoView(true)
<a name="first">
<a href="#first">anchors</a>
location.search();
obj.contenteditable=true
obj.execCommand
/[^\x00-\xff]/
汉字
/[\u4e00-\u9fa5]/
word-wrap: break-word; word-break: break-all;
<IFRAME src="1.htm" width=300 height=180 allowtransparency></iframe>
obj.style.cssText
document.documentElement.innerHTML
document.styleSheets[0]
document.styleSheets[0].rules[0]
<a href="javascript:function()">word</a>
asp:
request.servervariables("HTTP_REFERER")
javascript:
document.referrer
CollectGarbage();
document.oncontextmenu = function() { return false;}
<noscript><iframe src="*.htm"></iframe></noscript>
<input type=text onpaste="return false">
<link rel="Shortcut Icon" href="favicon.ico">
favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下
<link rel="Bookmark" href="favicon.ico">
<input type=button value=查看网页源代码 onclick="window.location = 'view-source:'+ 'http://www.csdn.net/'">
<input style="ime-mode:disabled">
<input type=text name=text1 value="123" onfocus="this.select()">
<input onkeydown="if(event.keyCode==13)event.keyCode=9">
<input type=text value="123" onfocus="alert(this.defaultValue)">
obj.title = "123 sdfs "
var n1 = new Date("2004-10-10".replace(/-/g, "\/")).getTime()
win.closed
<input type=checkbox style="position: absolute; clip:rect(5px 15px 15px 5px)"><br>
document.selection.createRange().duplicate().text
<input type=text autocomplete=on>打开该功能
<input type=text autocomplete=off>关闭该功能
<body onload="window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)">
window.open("aa.htm", "meizz", "fullscreen=7");
alert(decodeURIComponent(encodeURIComponent("http://你好.com?as= hehe")))
encodeURIComponent对":"、"/"、";" 和 "?"也编码
<tr onmouseover="this.bgColor='#f0f0f0'" onmouseout="this.bgColor='#ffffff'">
//各种尺寸
s += "\r\n网页可见区域宽:"+ document.body.clientWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;
s += "\r\n网页正文全文高:"+ document.body.scrollHeight;
s += "\r\n网页被卷去的高:"+ document.body.scrollTop;
s += "\r\n网页被卷去的左:"+ document.body.scrollLeft;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;
s += "\r\n网页正文全文高:"+ document.body.scrollHeight;
s += "\r\n网页被卷去的高:"+ document.body.scrollTop;
s += "\r\n网页被卷去的左:"+ document.body.scrollLeft;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
<a name="first">
<a href="#first">anchors</a>
location.search();
obj.contenteditable=true
obj.execCommand
/[^\x00-\xff]/
汉字
/[\u4e00-\u9fa5]/
word-wrap: break-word; word-break: break-all;
<IFRAME src="1.htm" width=300 height=180 allowtransparency></iframe>
obj.style.cssText
document.documentElement.innerHTML
document.styleSheets[0]
document.styleSheets[0].rules[0]
<a href="javascript:function()">word</a>
asp:
request.servervariables("HTTP_REFERER")
javascript:
document.referrer
CollectGarbage();
document.oncontextmenu = function() { return false;}
<noscript><iframe src="*.htm"></iframe></noscript>
<input type=text onpaste="return false">
<link rel="Shortcut Icon" href="favicon.ico">
favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下
<link rel="Bookmark" href="favicon.ico">
<input type=button value=查看网页源代码 onclick="window.location = 'view-source:'+ 'http://www.csdn.net/'">
<input style="ime-mode:disabled">
<input type=text name=text1 value="123" onfocus="this.select()">
<input onkeydown="if(event.keyCode==13)event.keyCode=9">
<input type=text value="123" onfocus="alert(this.defaultValue)">
obj.title = "123 sdfs "
var n1 = new Date("2004-10-10".replace(/-/g, "\/")).getTime()
win.closed
<input type=checkbox style="position: absolute; clip:rect(5px 15px 15px 5px)"><br>
document.selection.createRange().duplicate().text
<input type=text autocomplete=on>打开该功能
<input type=text autocomplete=off>关闭该功能
<body onload="window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)">
window.open("aa.htm", "meizz", "fullscreen=7");
alert(decodeURIComponent(encodeURIComponent("http://你好.com?as= hehe")))
encodeURIComponent对":"、"/"、";" 和 "?"也编码
<tr onmouseover="this.bgColor='#f0f0f0'" onmouseout="this.bgColor='#ffffff'">
//各种尺寸
s += "\r\n网页可见区域宽:"+ document.body.clientWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;
s += "\r\n网页正文全文高:"+ document.body.scrollHeight;
s += "\r\n网页被卷去的高:"+ document.body.scrollTop;
s += "\r\n网页被卷去的左:"+ document.body.scrollLeft;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;
s += "\r\n网页正文全文高:"+ document.body.scrollHeight;
s += "\r\n网页被卷去的高:"+ document.body.scrollTop;
s += "\r\n网页被卷去的左:"+ document.body.scrollLeft;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
<meta HTTP-EQUIV="refresh" CONTENT="8;URL=http://c98.yeah.net">
<a href="mailto:aaa@bbb.com?subject=ccc&body=xxxyyy">
obj.scrollIntoView(true)
<a name="first">
<a href="#first">anchors</a>
location.search();
obj.contenteditable=true
obj.execCommand
/[^\x00-\xff]/
汉字
/[\u4e00-\u9fa5]/
word-wrap: break-word; word-break: break-all;
<IFRAME src="1.htm" width=300 height=180 allowtransparency></iframe>
obj.style.cssText
document.documentElement.innerHTML
document.styleSheets[0]
document.styleSheets[0].rules[0]
<a href="javascript:function()">word</a>
asp:
request.servervariables("HTTP_REFERER")
javascript:
document.referrer
CollectGarbage();
document.oncontextmenu = function() { return false;}
<noscript><iframe src="*.htm"></iframe></noscript>
<input type=text onpaste="return false">
<link rel="Shortcut Icon" href="favicon.ico">
favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下
<link rel="Bookmark" href="favicon.ico">
<input type=button value=查看网页源代码 onclick="window.location = 'view-source:'+ 'http://www.csdn.net/'">
<input style="ime-mode:disabled">
<input type=text name=text1 value="123" onfocus="this.select()">
<input onkeydown="if(event.keyCode==13)event.keyCode=9">
<input type=text value="123" onfocus="alert(this.defaultValue)">
obj.title = "123 sdfs "
var n1 = new Date("2004-10-10".replace(/-/g, "\/")).getTime()
win.closed
<input type=checkbox style="position: absolute; clip:rect(5px 15px 15px 5px)"><br>
document.selection.createRange().duplicate().text
<input type=text autocomplete=on>打开该功能
<input type=text autocomplete=off>关闭该功能
<body onload="window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)">
window.open("aa.htm", "meizz", "fullscreen=7");
alert(decodeURIComponent(encodeURIComponent("http://你好.com?as= hehe")))
encodeURIComponent对":"、"/"、";" 和 "?"也编码
<tr onmouseover="this.bgColor='#f0f0f0'" onmouseout="this.bgColor='#ffffff'">