<! 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實現登錄頁面記住密碼和輸入鍵登錄方法推薦就是小編分享給大家的全部內容了,希望能給大家一個參考,也希望大家多多支持武林網。 ,也希望大家多多支持武林網。