设置首页:
btn.onRelease{ geturl("javascript :document.body.style.behavior=\"url(#default#homepage)\";document.body.sethomepage(\http://www.flashas.net \)", "_self"); } 加入收藏夹:
btn.onRelease{ geturl("javascript :window.external.addfavorite(\"")", "_self"); } 判断输入是否为数字的函数:
btn.onRelease{ if(Number(pass)==NaN){ //判断输入是否为数字 pass=""; }
转载于:https://www.cnblogs.com/jiayuan/archive/2012/02/14/2350706.html