{"id":212,"date":"2006-06-25T18:42:35","date_gmt":"2006-06-25T10:42:35","guid":{"rendered":"https:\/\/www.ecjtu.com\/keith\/archives\/212"},"modified":"2006-06-25T22:45:53","modified_gmt":"2006-06-25T14:45:53","slug":"%e6%94%b6%e8%97%8f%e5%b8%96-%e5%b8%b8%e7%94%a8%e7%9a%84%e4%b8%80%e4%ba%9bjavascript%e5%b0%8f%e6%8a%80%e5%b7%a7%e4%b8%80","status":"publish","type":"post","link":"https:\/\/www.ecjtu.com\/keith\/archives\/212","title":{"rendered":"\u6536\u85cf\u5e16 \u5e38\u7528\u7684\u4e00\u4e9bjavascript\u5c0f\u6280\u5de7(\u4e00)"},"content":{"rendered":"<p>\u8f6c\u81ea\u84dd\u8272\u7406\u60f3\uff0c\u6574\u7406\u8005\uff1aoror \u5177\u4f53\u6765\u8bf4\uff0c\u4e0d\u5149\u662fJS\u6280\u5de7\uff0cDHTML\u548cASP\u3002<\/p>\n<p>\u4e8b\u4ef6\u6e90\u5bf9\u8c61<\/p>\n<p>event.srcElement.tagName<br \/>\nevent.srcElement.type<\/p>\n<p>\u6355\u83b7\u91ca\u653e<\/p>\n<p>event.srcElement.setCapture();<br \/>\nevent.srcElement.releaseCapture();<\/p>\n<p>\u4e8b\u4ef6\u6309\u952e<br \/>\nevent.keyCode<br \/>\nevent.shiftKey<br \/>\nevent.altKey<br \/>\nevent.ctrlKey<\/p>\n<p>\u4e8b\u4ef6\u8fd4\u56de\u503c<br \/>\nevent.returnValue<\/p>\n<p>\u9f20\u6807\u4f4d\u7f6e<\/p>\n<p>event.x<br \/>\nevent.y<\/p>\n<p>\u7a97\u4f53\u6d3b\u52a8\u5143\u7d20<br \/>\ndocument.activeElement<\/p>\n<p>\u7ed1\u5b9a\u4e8b\u4ef6<br \/>\ndocument.captureEvents(Event.KEYDOWN);<\/p>\n<p>\u8bbf\u95ee\u7a97\u4f53\u5143\u7d20<\/p>\n<p>document.all(&#8220;txt&#8221;).focus();<br \/>\ndocument.all(&#8220;txt&#8221;).select();<\/p>\n<p>\u7a97\u4f53\u547d\u4ee4<\/p>\n<p>document.execCommand<\/p>\n<p>\u7a97\u4f53COOKIE<\/p>\n<p>document.cookie<\/p>\n<p>\u83dc\u5355\u4e8b\u4ef6<\/p>\n<p>document.oncontextmenu<\/p>\n<p>\u521b\u5efa\u5143\u7d20<\/p>\n<p>document.createElement(&#8220;SPAN&#8221;);<\/p>\n<p>\u6839\u636e\u9f20\u6807\u83b7\u5f97\u5143\u7d20\uff1a<br \/>\ndocument.elementFromPoint(event.x,event.y).tagName==&#8221;TD<br \/>\ndocument.elementFromPoint(event.x,event.y).appendChild(ms)<\/p>\n<p>\u7a97\u4f53\u56fe\u7247<br \/>\ndocument.images[\u7d22\u5f15]<\/p>\n<p>\u7a97\u4f53\u4e8b\u4ef6\u7ed1\u5b9a<\/p>\n<p>document.onmousedown=scrollwindow;<\/p>\n<p>\u5143\u7d20<\/p>\n<p>document.\u7a97\u4f53.elements[\u7d22\u5f15]<br \/>\n\u5bf9\u8c61\u7ed1\u5b9a\u4e8b\u4ef6<\/p>\n<p>\u63d2\u4ef6\u6570\u76ee<br \/>\nnavigator.plugins<\/p>\n<p>\u53d6\u53d8\u91cf\u7c7b\u578b<br \/>\ntypeof($js_libpath) == &#8220;undefined&#8221;<\/p>\n<p>\u4e0b\u62c9\u6846<br \/>\n\u4e0b\u62c9\u6846.options[\u7d22\u5f15]<br \/>\n\u4e0b\u62c9\u6846.options.length<\/p>\n<p>\u67e5\u627e\u5bf9\u8c61<\/p>\n<p>document.getElementsByName(&#8220;r1&#8221;);<br \/>\ndocument.getElementById(id);<\/p>\n<p>\u5b9a\u65f6<\/p>\n<p>UNCODE\u7f16\u7801<\/p>\n<p>escape() ,unescape<\/p>\n<p>\u7236\u5bf9\u8c61<\/p>\n<p>obj.parentElement(dhtml)<br \/>\nobj.parentNode(dom)<\/p>\n<p>\u4ea4\u6362\u8868\u7684\u884c<br \/>\nTableID.moveRow(2,1)<\/p>\n<p>\u66ff\u6362CSS<\/p>\n<p>document.all.csss.href = &#8220;a.css&#8221;;<\/p>\n<p>\u5e76\u6392\u663e\u793a<\/p>\n<p>display:inline<\/p>\n<p>\u9690\u85cf\u7126\u70b9<\/p>\n<p>hidefocus=true<\/p>\n<p>\u6839\u636e\u5bbd\u5ea6\u6362\u884c<br \/>\nstyle=&#8221;word-break:break-all&#8221;<\/p>\n<p>\u81ea\u52a8\u5237\u65b0<\/p>\n<p>&lt;meta HTTP-EQUIV=&#8221;refresh&#8221; CONTENT=&#8221;8;URL=http:\/\/c98.yeah.net&#8221;&gt;<\/p>\n<p>\u7b80\u5355\u90ae\u4ef6<br \/>\n&lt;a href=&#8221;mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy&#8221;&gt;<\/p>\n<p>\u5feb\u901f\u8f6c\u5230\u4f4d\u7f6e<\/p>\n<p>obj.scrollIntoView(true)<\/p>\n<p>\u951a<br \/>\n&lt;a name=&#8221;first&#8221;&gt;<br \/>\n&lt;a href=&#8221;#first&#8221;&gt;anchors&lt;\/a&gt;<\/p>\n<p>\u7f51\u9875\u4f20\u9012\u53c2\u6570<br \/>\nlocation.search();<\/p>\n<p>\u53ef\u7f16\u8f91<br \/>\nobj.contenteditable=true<\/p>\n<p>\u6267\u884c\u83dc\u5355\u547d\u4ee4<br \/>\nobj.execCommand<\/p>\n<p>\u53cc\u5b57\u8282\u5b57\u7b26<\/p>\n<p>\/[^\\x00-\\xff]\/<\/p>\n<p>\u6c49\u5b57<\/p>\n<p>\/[\\u4e00-\\u9fa5]\/<\/p>\n<p>\u8ba9\u82f1\u6587\u5b57\u7b26\u4e32\u8d85\u51fa\u8868\u683c\u5bbd\u5ea6\u81ea\u52a8\u6362\u884c<br \/>\nword-wrap: break-word; word-break: break-all;<\/p>\n<p>\u900f\u660e\u80cc\u666f<br \/>\n&lt;IFRAME src=&#8221;1.htm&#8221; width=300 height=180 allowtransparency&gt;&lt;\/iframe&gt;<\/p>\n<p>\u83b7\u5f97style\u5185\u5bb9<br \/>\nobj.style.cssText<\/p>\n<p>HTML\u6807\u7b7e<br \/>\ndocument.documentElement.innerHTML<\/p>\n<p>\u7b2c\u4e00\u4e2astyle\u6807\u7b7e<br \/>\ndocument.styleSheets[0]<\/p>\n<p>style\u6807\u7b7e\u91cc\u7684\u7b2c\u4e00\u4e2a\u6837\u5f0f<br \/>\ndocument.styleSheets[0].rules[0]<\/p>\n<p>\u9632\u6b62\u70b9\u51fb\u7a7a\u94fe\u63a5\u65f6\uff0c\u9875\u9762\u5f80\u5f80\u91cd\u7f6e\u5230\u9875\u9996\u7aef\u3002<br \/>\n&lt;a href=&#8221;javascript:function()&#8221;&gt;word&lt;\/a&gt;<\/p>\n<p>\u4e0a\u4e00\u7f51\u9875\u6e90<br \/>\nasp:<br \/>\nrequest.servervariables(&#8220;HTTP_REFERER&#8221;)<br \/>\njavascript:<br \/>\ndocument.referrer<\/p>\n<p>\u91ca\u653e\u5185\u5b58<br \/>\nCollectGarbage();<\/p>\n<p>\u7981\u6b62\u53f3\u952e<\/p>\n<p>document.oncontextmenu = function() { return false;}<\/p>\n<p>\u7981\u6b62\u4fdd\u5b58<\/p>\n<p>&lt;noscript&gt;&lt;iframe src=&#8221;*.htm&#8221;&gt;&lt;\/iframe&gt;&lt;\/noscript&gt;<\/p>\n<p>\u7981\u6b62\u9009\u53d6<\/p>\n<p>&lt;body oncontextmenu=&#8221;return false&#8221; ondragstart=&#8221;return false&#8221; onselectstart =&#8221;return false&#8221; onselect=&#8221;document.selection.empty()&#8221; oncopy=&#8221;document.selection.empty()&#8221; onbeforecopy=&#8221;return false&#8221;onmouseup=&#8221;document.selection.empty()&gt;<\/p>\n<p>\u7981\u6b62\u7c98\u8d34<br \/>\n&lt;input type=text onpaste=&#8221;return false&#8221;&gt;<\/p>\n<p>\u5730\u5740\u680f\u56fe\u6807<\/p>\n<p>&lt;link rel=&#8221;Shortcut Icon&#8221; href=&#8221;favicon.ico&#8221;&gt;<\/p>\n<p>favicon.ico \u540d\u5b57\u6700\u597d\u4e0d\u53d816*16\u768416\u8272,\u653e\u865a\u62df\u76ee\u5f55\u6839\u76ee\u5f55\u4e0b<br \/>\n\u6536\u85cf\u680f\u56fe\u6807<\/p>\n<p>&lt;link rel=&#8221;Bookmark&#8221; href=&#8221;favicon.ico&#8221;&gt;<\/p>\n<p>\u67e5\u770b\u6e90\u7801<\/p>\n<p>\u5173\u95ed\u8f93\u5165\u6cd5<br \/>\n&lt;input style=&#8221;ime-mode:disabled&#8221;&gt;<\/p>\n<p>\u81ea\u52a8\u5168\u9009<br \/>\n&lt;input type=text name=text1 value=&#8221;123&#8243; onfocus=&#8221;this.select()&#8221;&gt;<\/p>\n<p>ENTER\u952e\u53ef\u4ee5\u8ba9\u5149\u6807\u79fb\u5230\u4e0b\u4e00\u4e2a\u8f93\u5165\u6846<br \/>\n&lt;input onkeydown=&#8221;if(event.keyCode==13)event.keyCode=9&#8243;&gt;<\/p>\n<p>\u6587\u672c\u6846\u7684\u9ed8\u8ba4\u503c<br \/>\n&lt;input type=text value=&#8221;123&#8243; onfocus=&#8221;alert(this.defaultValue)&#8221;&gt;<\/p>\n<p>title\u6362\u884c<br \/>\nobj.title = &#8220;123&amp;#13sdfs&amp;#32&#8221;<\/p>\n<p>\u83b7\u5f97\u65f6\u95f4\u6240\u4ee3\u8868\u7684\u5fae\u79d2<\/p>\n<p>var n1 = new Date(&#8220;2004-10-10&#8221;.replace(\/-\/g, &#8220;\\\/&#8221;)).getTime()<\/p>\n<p>\u7a97\u53e3\u662f\u5426\u5173\u95ed<\/p>\n<p>win.closed<\/p>\n<p>checkbox\u6241\u5e73<br \/>\n&lt;input type=checkbox style=&#8221;position: absolute; clip:rect(5px 15px 15px 5px)&#8221;&gt;<\/p>\n<p>\u83b7\u53d6\u9009\u4e2d\u5185\u5bb9<\/p>\n<p>document.selection.createRange().duplicate().text<\/p>\n<p>\u81ea\u52a8\u5b8c\u6210\u529f\u80fd<br \/>\n&lt;input type=text autocomplete=on&gt;\u6253\u5f00\u8be5\u529f\u80fd<br \/>\n&lt;input type=text autocomplete=off&gt;\u5173\u95ed\u8be5\u529f\u80fd<\/p>\n<p>\u7a97\u53e3\u6700\u5927\u5316<\/p>\n<p>&lt;body onload=&#8221;window.resizeTo(window.screen.width &#8211; 4,window.screen.height-50);window.moveTo(-4,-4)&#8221;&gt;<\/p>\n<p>\u65e0\u5173\u95ed\u6309\u94aeIE<br \/>\nwindow.open(&#8220;aa.htm&#8221;, &#8220;meizz&#8221;, &#8220;fullscreen=7&#8221;);<\/p>\n<p>\u7edf\u4e00\u7f16\u7801\/\u89e3\u7801<br \/>\nalert(decodeURIComponent(encodeURIComponent(&#8220;http:\/\/\u4f60\u597d.com?as=\u00a0hehe&#8221;)))<br \/>\nencodeURIComponent\u5bf9&#8221;:&#8221;\u3001&#8221;\/&#8221;\u3001&#8221;;&#8221; \u548c &#8220;?&#8221;\u4e5f\u7f16\u7801<\/p>\n<p>\u8868\u683c\u884c\u6307\u793a<\/p>\n<p>\/\/\u5404\u79cd\u5c3a\u5bf8<\/p>\n<p>s += &#8220;\\r\\n\u7f51\u9875\u53ef\u89c1\u533a\u57df\u5bbd\uff1a&#8221;+ document.body.clientWidth;<br \/>\ns += &#8220;\\r\\n\u7f51\u9875\u53ef\u89c1\u533a\u57df\u9ad8\uff1a&#8221;+ document.body.clientHeight;<br \/>\ns += &#8220;\\r\\n\u7f51\u9875\u53ef\u89c1\u533a\u57df\u9ad8\uff1a&#8221;+ document.body.offsetWeight +&#8221; (\u5305\u62ec\u8fb9\u7ebf\u7684\u5bbd)&#8221;;<br \/>\ns += &#8220;\\r\\n\u7f51\u9875\u53ef\u89c1\u533a\u57df\u9ad8\uff1a&#8221;+ document.body.offsetHeight +&#8221; (\u5305\u62ec\u8fb9\u7ebf\u7684\u5bbd)&#8221;;<br \/>\ns += &#8220;\\r\\n\u7f51\u9875\u6b63\u6587\u5168\u6587\u5bbd\uff1a&#8221;+ document.body.scrollWidth;<br \/>\ns += &#8220;\\r\\n\u7f51\u9875\u6b63\u6587\u5168\u6587\u9ad8\uff1a&#8221;+ document.body.scrollHeight;<br \/>\ns += &#8220;\\r\\n\u7f51\u9875\u88ab\u5377\u53bb\u7684\u9ad8\uff1a&#8221;+ document.body.scrollTop;<br \/>\ns += &#8220;\\r\\n\u7f51\u9875\u88ab\u5377\u53bb\u7684\u5de6\uff1a&#8221;+ document.body.scrollLeft;<br \/>\ns += &#8220;\\r\\n\u7f51\u9875\u6b63\u6587\u90e8\u5206\u4e0a\uff1a&#8221;+ window.screenTop;<br \/>\ns += &#8220;\\r\\n\u7f51\u9875\u6b63\u6587\u90e8\u5206\u5de6\uff1a&#8221;+ window.screenLeft;<br \/>\ns += &#8220;\\r\\n\u5c4f\u5e55\u5206\u8fa8\u7387\u7684\u9ad8\uff1a&#8221;+ window.screen.height;<br \/>\ns += &#8220;\\r\\n\u5c4f\u5e55\u5206\u8fa8\u7387\u7684\u5bbd\uff1a&#8221;+ window.screen.width;<br \/>\ns += &#8220;\\r\\n\u5c4f\u5e55\u53ef\u7528\u5de5\u4f5c\u533a\u9ad8\u5ea6\uff1a&#8221;+ window.screen.availHeight;<br \/>\ns += &#8220;\\r\\n\u5c4f\u5e55\u53ef\u7528\u5de5\u4f5c\u533a\u5bbd\u5ea6\uff1a&#8221;+ window.screen.availWidth;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u81ea\u84dd\u8272\u7406\u60f3\uff0c\u6574\u7406\u8005\uff1aoror \u5177\u4f53\u6765\u8bf4\uff0c\u4e0d\u5149\u662fJS\u6280\u5de7\uff0cDHTML\u548cASP\u3002 \u4e8b\u4ef6\u6e90\u5bf9\u8c61 event.src [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[107,67],"_links":{"self":[{"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/posts\/212"}],"collection":[{"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":1,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":213,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/posts\/212\/revisions\/213"}],"wp:attachment":[{"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/tags?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}