Search This Blog

Saturday, September 7, 2013

SET ESC KEY EVENT IN WEB PAGES

 
<html>
         <head>
                    <title>Untitled Document</title>
                    <script type="text/javascript" src="jquery.js" />
</script>
                    <script>
                               $(document).keyup(function(e) {
                               if (e.keyCode == 27) { document.write("RUN");} // esc
                               });
                    </script>
          </head>
          
          <body>
                     Demo File.
          </body>
</html>

Continue Reading...