티스토리 뷰

//enter event
var exp = "";
function keyEvent(e){ //window.event
     if(exp != "ok"){
          if ( event.keyCode == 13 ){  //ENTER KEY CODE
               formCheck();
          }
     } else{
          exp = "";
     }
}
document.onkeypress = keyEvent;
 
---------------------------------------------------------------------------------------------------------------------------
 
// HTML
< SCRIPT language="javascript" type="text/javascript" src="/login@admin/_js/keyEvent.js" />
 
< !-- KeyEvent START -->
< input name="txtPass" type="password" id="pw" size="24" onKeyPress="keyEvent(event);" />
< !-- KeyEvent END -->
 
---------------------------------------------------------------------------------------------------------------------------

Total
Today
Yesterday
최근에 올라온 글
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31