<script language="JavaScript1.2">
<!-- This Script Modified by Java Depot -->
<!-- Web Site : http://www.javascript.co.kr -->
/*
Home Hot Key Script-
?Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
var hotkey=72 //a=97, b=98, c=99, d=100, e=101, f=102, g=103, h=104,......A=65, B=66, C=67...이런식으로 부여하세요
var destination="http://www.javascript.co.kr"
if (document.layers)
document.captureEvents(Event.KEYPRESS)
function backhome(e){
if (document.layers){
if (e.which==hotkey)
window.location=destination
}
else if (document.all){
if (event.keyCode==hotkey)
window.location=destination
}
}
document.onkeypress=backhome
</script>
</head>
<body>
<center><h1>H 를 누르면 홈으로 갑니다</h1>
<p><center>
<font face="굴림, 굴림체" size="2">쉬운 자바 베껴쓰는 자바<br>
by <a href="http://www.javascript.co.kr">Java Depot</a></font>
</center><p>.