wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes onKeyPress Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "onKeyPress" Watch "onKeyPress" New topic
Author

onKeyPress

Giomar Guevara
Ranch Hand

Joined: Oct 18, 2006
Posts: 51
hi I have this code:

<body onlload="MTMStartMenu(true);" onKeypPress="alert('gggg');" bgcolor="#000033" text="#ffffcc" link="yellow" vlink="lime" alink="red">

and the onKeyPress does nothing,

what is the problem?

ps I wrote incorrectly the 2 methods to post this message
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6


Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: onKeyPress