View Source
Go Back to /jang/books/webprog/06asp/example/editfile/editfile.inc
Go Back to WWW sandbox
<SCRIPT>
function editfile() {
         var keycode = event.keyCode;
         if (keycode==120) {
                 document.location="editfile.asp?FileName=<%=Request.ServerVariables("PATH_INFO")%>"
         }
}
</SCRIPT>

<SCRIPT>document.onkeydown=editfile;</SCRIPT>
<%  session("source") = Request.ServerVariables("URL") %>