0 Members and 1 Guest are viewing this topic.
<html> <head> <title> Title </title> <script type="text/javascript" src="jBasic.js"></script> <script type="text/javascript"> function setup(){ //put code here } </script> </head> <body onload="gScreen = document.getElementById('window');setup();" > <div id="window" > </div> <form name="keyform"> <input id="getkey" style="visibility:hidden;" readonly="readonly" type="text" value=""></input> <input id="getkeycode" style="visibility:hidden;" readonly="readonly" type="text" value=""></input> </form> </body></html>
I wonder, in Javascript, are there any possibility of interaction from the user by pressing keys? Otherwise I guess a point and click game could be awesome too when it has more commands