<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></title> 
<link>http://www.bizeway.net/index.php</link> 
<description><![CDATA[网务通 - 网务公司发展之路]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></copyright>
<item>
<link>http://www.bizeway.net/read.php?</link>
<title><![CDATA[javascript小技巧JavaScript[对象.属性]集锦 [转载]]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Fri, 17 Oct 2008 08:45:19 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?</guid> 
<description>
<![CDATA[ 
	<div><ul><li><span style="font-size: x-small"><strong>事件源对象</strong> <br />event.srcElement.tagName <br />event.srcElement.type</span> </li><li><span style="font-size: x-small"><strong>捕获释放 <br /></strong>event.srcElement.setCapture(); &nbsp;<br />event.srcElement.releaseCapture(); &nbsp;</span></li><li><span style="font-size: x-small"><strong>事件按键</strong> <br />event.keyCode <br />event.shiftKey <br />event.altKey <br />event.ctrlKey</span> </li><li><span style="font-size: x-small"><strong>事件返回值</strong> <br />event.returnValue</span> </li><li><span style="font-size: x-small"><strong>鼠标位置 <br /></strong>event.x <br />event.y</span> </li><li><span style="font-size: x-small"><strong>窗体活动元素 <br /></strong>document.activeElement</span> </li><li><span style="font-size: x-small"><strong>绑定事件</strong> <br />document.captureEvents(Event.KEYDOWN);</span> </li><li><span style="font-size: x-small"><strong>访问窗体元素 <br /></strong>document.all(&quot;txt&quot;).focus(); <br />document.all(&quot;txt&quot;).select();</span> </li><li><span style="font-size: x-small"><strong>窗体命令</strong> <br />document.execCommand</span> </li><li><span style="font-size: x-small"><strong>窗体COOKIE <br /></strong>document.cookie</span> </li><li><span style="font-size: x-small"><strong>菜单事件</strong> <br />document.oncontextmenu</span> </li><li><span style="font-size: x-small"><strong>创建元素 <br /></strong>document.createElement(&quot;SPAN&quot;); &nbsp;</span></li><li><span style="font-size: x-small"><strong>根据鼠标获得元素： <br /></strong>document.elementFromPoint(event.x,event.y).tagName==&quot;TD <br /></span><span style="font-size: x-small">document.elementFromPoint(event.x,event.y).appendChild(ms) &nbsp;</span></li><li><span style="font-size: x-small"><strong>窗体图片</strong> <br />document.images[索引]</span> </li><li><span style="font-size: x-small"><strong>窗体事件绑定 <br /></strong>document.onmousedown=scrollwindow;</span> </li><li><span style="font-size: x-small"><strong>元素</strong> <br />document.窗体.elements[索引]</span> </li><li><span style="font-size: x-small"><strong>对象绑定事件 <br /></strong>document.all.xxx.detachEvent('onclick',a);</span> </li><li><span style="font-size: x-small"><strong>插件数目</strong> <br />navigator.plugins</span> </li><li><span style="font-size: x-small"><strong>取变量类型 <br /></strong>typeof($js_libpath) == &quot;undefined&quot;</span> </li><li><span style="font-size: x-small"><strong>下拉框 <br /></strong></span><span style="font-size: x-small">下拉框.options[索引] <br />下拉框.options.length</span> </li><li><span style="font-size: x-small"><strong>查找对象</strong> <br />document.getElementsByName(&quot;r1&quot;); <br />document.getElementById(id); </span></li><li><span style="font-size: x-small"><strong>定时 <br /></strong>timer=setInterval('scrollwindow()',delay); <br />clearInterval(timer);</span> </li><li><span style="font-size: x-small"><strong>UNCODE编码 <br /></strong>escape() ,unescape</span> </li><li><span style="font-size: x-small"><strong>父对象</strong> <br />obj.parentElement(dhtml) <br />obj.parentNode(dom)</span> </li><li><span style="font-size: x-small"><strong>交换表的行 <br /></strong>TableID.moveRow(2,1)</span><span style="font-size: x-small"><strong> </strong></span><span style="font-size: x-small"><li><strong><span style="font-size: x-small"><strong>替换CSS</strong> <br /></span>document.all.csss.href = &quot;a.css&quot;;<span style="font-size: x-small"><strong> </strong></span></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>并排显示</strong> <br /></span>display:inline<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>并排显示</strong> <br /></span>display:inline<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><span style="font-size: x-small"><strong>替换CSS</strong> <br /></span>document.all.csss.href = &quot;a.css&quot;;<span style="font-size: x-small"><strong> </strong></span></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>并排显示</strong> <br /></span>display:inline<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>并排显示</strong> <br /></span>display:inline<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></ul><li><p><span style="font-size: x-small"><strong>//过滤数字</strong> <div>&lt;input type=text onkeypress=<span style="color: #ff00ff">&quot;return event.keyCode&gt;=48&amp;&amp;event.keyCode&lt;=57&#124;&#124;(this.value.indexOf('.')&lt;0?event.keyCode==46:false)&quot;</span> onpaste=<span style="color: #ff00ff">&quot;return !clipboardData.getData('text').match(/&#92;D/)&quot;</span> ondragenter=<span style="color: #ff00ff">&quot;return false&quot;</span>&gt; </div></span></p><div>&lt;input type=text onkeypress=<span style="color: #ff00ff">&quot;return event.keyCode&gt;=48&amp;&amp;event.keyCode&lt;=57&#124;&#124;(this.value.indexOf('.')&lt;0?event.keyCode==46:false)&quot;</span> onpaste=<span style="color: #ff00ff">&quot;return !clipboardData.getData('text').match(/&#92;D/)&quot;</span> ondragenter=<span style="color: #ff00ff">&quot;return false&quot;</span>&gt; </div><p></p><p></p><p><span style="font-size: x-small"><strong>//特殊用途</strong> <div>&lt;input type=button value=导入收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.ImportExportFavorites(true,'http:<span style="color: #008000">//localhost');&quot;</span>&gt; </span><br />&lt;input type=button value=导出收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.ImportExportFavorites(false,'http:<span style="color: #008000">//localhost');&quot;</span>&gt; </span><br />&lt;input type=button value=整理收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.ShowBrowserUI('OrganizeFavorites', null)&quot;</span>&gt; <br />&lt;input type=button value=语言设置 &nbsp; onclick=<span style="color: #ff00ff">&quot;window.external.ShowBrowserUI('LanguageDialog', null)&quot;</span>&gt; <br />&lt;input type=button value=加入收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.AddFavorite('http:<span style="color: #008000">//www.google.com/', 'google')&quot;</span>&gt; </span><br />&lt;input type=button value=加入到频道 onclick=<span style="color: #ff00ff">&quot;window.external.addChannel('http:<span style="color: #008000">//www.google.com/')&quot;</span>&gt; </span><br />&lt;input type=button value=加入到频道 onclick=<span style="color: #ff00ff">&quot;window.external.showBrowserUI('PrivacySettings',null)&quot;</span>&gt; </div></span></p><div>&lt;input type=button value=导入收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.ImportExportFavorites(true,'http:<span style="color: #008000">//localhost');&quot;</span>&gt; </span><br />&lt;input type=button value=导出收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.ImportExportFavorites(false,'http:<span style="color: #008000">//localhost');&quot;</span>&gt; </span><br />&lt;input type=button value=整理收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.ShowBrowserUI('OrganizeFavorites', null)&quot;</span>&gt; <br />&lt;input type=button value=语言设置 &nbsp; onclick=<span style="color: #ff00ff">&quot;window.external.ShowBrowserUI('LanguageDialog', null)&quot;</span>&gt; <br />&lt;input type=button value=加入收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.AddFavorite('http:<span style="color: #008000">//www.google.com/', 'google')&quot;</span>&gt; </span><br />&lt;input type=button value=加入到频道 onclick=<span style="color: #ff00ff">&quot;window.external.addChannel('http:<span style="color: #008000">//www.google.com/')&quot;</span>&gt; </span><br />&lt;input type=button value=加入到频道 onclick=<span style="color: #ff00ff">&quot;window.external.showBrowserUI('PrivacySettings',null)&quot;</span>&gt; </div><p></p><p></p><p><span style="font-size: x-small"><strong>//不缓存</strong> </span></p><div><span style="font-size: x-small">&lt;META HTTP-EQUIV=<span style="color: #ff00ff">&quot;pragma&quot;</span> CONTENT=<span style="color: #ff00ff">&quot;no-cache&quot;</span>&gt; <br />&lt;META HTTP-EQUIV=<span style="color: #ff00ff">&quot;Cache-Control&quot;</span> CONTENT=<span style="color: #ff00ff">&quot;no-cache, must-revalidate&quot;</span>&gt; <br />&lt;META HTTP-EQUIV=<span style="color: #ff00ff">&quot;expires&quot;</span> CONTENT=<span style="color: #ff00ff">&quot;0&quot;</span>&gt; </span></div><p></p><p></p><p></p><p><br /><span style="font-size: x-small"><strong>//正则匹配</strong></span> </p><p></p><div><span style="font-size: x-small">匹配中文字符的正则表达式： [&#92;u4e00-&#92;u9fa5] <br />匹配双字节字符(包括汉字在内)：[^&#92;x00-&#92;xff] <br />匹配空行的正则表达式：&#92;n[&#92;s&#124; ]*&#92;r <br />匹配HTML标记的正则表达式：/&lt;(.*)&gt;.*&lt;&#92;/&#92;1&gt;&#124;&lt;(.*) &#92;/&gt;/ &nbsp;<br />匹配首尾空格的正则表达式：(^&#92;s*)&#124;(&#92;s*$)（像vbscript那样的trim函数） <br />匹配Email地址的正则表达式：&#92;w+([-+.]&#92;w+)*@&#92;w+([-.]&#92;w+)*&#92;.&#92;w+([-.]&#92;w+)* <br />匹配网址URL的正则表达式：http:<span style="color: #008000">//([&#92;w-]+&#92;.)+[&#92;w-]+(/[&#92;w- ./?%&amp;=]*)? </span><br />以下是例子： <br />利用正则表达式限制网页表单里的文本框输入内容： <br />用正则表达式限制只能输入中文：onkeyup=<span style="color: #ff00ff">&quot;value=value.replace(/[^&#92;u4E00-&#92;u9FA5]/g,'')&quot;</span> onbeforepaste=<span style="color: #ff00ff">&quot;clipboardData.setData('text',clipboardData.getData('text').replace(/[^&#92;u4E00-&#92;u9FA5]/g,''))&quot;</span> <br />1.用正则表达式限制只能输入全角字符： onkeyup=<span style="color: #ff00ff">&quot;value=value.replace(/[^&#92;uFF00-&#92;uFFFF]/g,'')&quot;</span> onbeforepaste=<span style="color: #ff00ff">&quot;clipboardData.setData('text',clipboardData.getData('text').replace(/[^&#92;uFF00-&#92;uFFFF]/g,''))&quot;</span> <br />2.用正则表达式限制只能输入数字：onkeyup=<span style="color: #ff00ff">&quot;value=value.replace(/[^&#92;d]/g,'') &quot;</span>onbeforepaste=<span style="color: #ff00ff">&quot;clipboardData.setData('text',clipboardData.getData('text').replace(/[^&#92;d]/g,''))&quot;</span> <br />3.用正则表达式限制只能输入数字和英文：onkeyup=<span style="color: #ff00ff">&quot;value=value.replace(/[&#92;W]/g,'') &quot;</span>onbeforepaste=<span style="color: #ff00ff">&quot;clipboardData.setData('text',clipboardData.getData('text').replace(/[^&#92;d]/g,''))&quot;</span> </span></div><p><span style="font-size: x-small"><span style="font-size: x-small"></span></span></p></li></div><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?&amp;guid=0#topreply</link>
<title><![CDATA[[评论] javascript小技巧JavaScript[对象.属性]集锦 [转载]]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?&amp;guid=0#topreply</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>