从阿里妈妈发现的几个不错的表单验证函数
//——– // 检查当前浏览器是否为Netscape //——– function isNetscape(){ app=navigator.appName.substring(0,1); if (app==’N’) return true; else {return false;} } //——– // 保存当前Form表单(仅适用于IE浏览器) //——– function formSaveCheck(fileName){ if(isNetscape()){alert(“Sorry, these function is not supported”&
下载地址
用户评论