Click to See Complete Forum and Search --> : Quick question


aderouin
05-04-2003, 10:46 PM
How can I make a prompt box pop up after the user either does an onkeypress or something of that nature? Tried a few things but no luck :(

Andrew.

vickers_bits
05-04-2003, 11:00 PM
function myFunction(){
var myPrompt = prompt("Question?","Default answer");
};

<body onkeypress="myFunction();">

aderouin
05-04-2003, 11:04 PM
Thanks!