Feedback on: irt.org FAQ Knowledge Base Q848
irt.org | About | Feedback | 3939 [ previous next ] Feedback on: irt.org FAQ Knowledge Base Q848
Sent by Miha Novak on June 11, 2002 at 06:47:51:
Worth: Very worth reading
Length: Just right
Technical: Just right
Comments: If you want to capture events also in for example combo box you can do it in this manner! <HTML> <HEAD> <script language="Javascript"> function NS(e) { if (e.which == 13) { window.alert("You have pressed return");} } function Author() { window.alert("This script was contributed to the WWW by Miha Novak, Slovenia"); } window.captureEvents(Event.KEYPRESS); window.onkeypress = NS; </script> </HEAD> <BODY > <form name="test"> <select name="selection" onkeypress="Javascript:NS(event);"> <option>first option</option> <option>second option</option> <option>third option</option> </select> <input type="button" value="press" name="butt" onClick="Author()"> <input type="text" name="tfield" SIZE="20"> </form> </BODY> </HTML>
Other feedback on 'irt.org FAQ Knowledge Base Q848' - show all
|