<!doctype html> <html> <head> <meta charset =“ utf-8”> <title> <title> </title> </title> </title> <script> // document.onkeypress.onkeypress = function(e){// var keycode = } //:document.onkeypress = viewKeyinfo; function viewKeyInfo(e){var e = e ||事件; if((e ['keycode'] == 13)||(e ['wher'] == 13)){alert_login();}} function body_onload(){if(1 == get_saveauth_cookies() get_user_cookies(); tmp_pwd = get_pwd_cookies(); document.getElementById(“ tt_user”)。值= tmp_user; document.getElementByid(“ pd_pwd”)。 arper_login(){if(document.getElementById(“ chx_save_auth”)。 1440); setCookie('loginpwd',cookie_pwd,1440); setCookie('saveauth',1,1440);} else {setCookie('seveauth',0,1440);} location;}位置cookiestring = name+'='+easse(value); if(expirehours> 0){var date = new date(); date.settime(date.getTime()+ExpireHours*3600*1000); cookiestring = cookiestring = cookiestring+'; expires ='+date.togmtstring(); document.cookie = cookiestring;} document.cookie = cookiestring;}函数getCookie(name){var strcookie = document.cookie; var arrcookie; var arrcookie = strcookie = strcookie.strcookie.split( arr = arr = arr cookie [i] .split('='); if(arr [0] ==名称)返回unescape(arr [1]);}返回'';}函数get_user_cookies(){var tmp_val = get = get = get getCookie('loginuser' getCookie('loginpwd');返回tmp_val;}函数get_saveauth_cookies(){var tmp_val = get = getCookie('saveeauth'); return tmp_val;} </script> </script> </script> </script> </head> </head> <head> <hody onload = style =“ Margin-Left:34px; width:200px;“/> </p> <p>密码:<input type type =“ password” value =“登录”/> </p> <! - <input type =“ button” onclick =“ javascript:arper_login()” value =“ login”/> javascript:arper_login()与arper_login()与werstr_login()以上这篇js实现登录页面记住密码和输入键登录方法推荐就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持武林网。,也希望大家多多支持武林网。