//过滤数字
<input type=text onkeypress="return
event.keyCode>=48&&event.keyCode<=57||(this.value.indexOf('.')<0?
event.keyCode==46:false)" onpaste="return !
clipboardData.getData('text').match(/\D/)" ondragenter="return false">
//特殊用途
<input type=button value=导入收藏夹
onclick="window.external.ImportExportFavorites(true,'http://localhost'
);">
<input type=button value=导出收藏夹
onclick="window.external.ImportExportFavorites(false,'http://localhost
');">
<input type=button value=整理收藏夹
onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)">
<input type=button value=语言设置
onclick="window.external.ShowBrowserUI('LanguageDialog', null)">
<input type=button value=加入收藏夹
onclick="window.external.AddFavorite('http://www.google.com/',
'google')">
<input type=button value=加入到频道
onclick="window.external.addChannel('http://www.google.com/')">
<input type=button value=加入到频道
onclick="window.external.showBrowserUI('PrivacySettings',null)">
//不缓存
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="0">
//正则匹配
匹配中文字符的正则表达式: [\u4e00-\u9fa5]
匹配双字节字符(包括汉字在内):[^\x00-\xff]