Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Browsers compatibilities


Message #1 by "Catalin VASILE" <infosecro@y...> on Fri, 1 Mar 2002 23:21:58 +0200
I am working on a script which tests  the content of a input box. It looks
like this:



function check()
{
if (document.layers)
{
document.captureEvents(Event.KEYPRESS)
document.onkeypress=nscheck
}
if ((window.event.keyCode > 32 && window.event.keyCode < 48) ||
(window.event.keyCode > 57 && window.event.keyCode < 65) ||
(window.event.keyCode > 90 && window.event.keyCode < 97))
window.event.returnValue = false;
}

function nscheck(e){
if ((e.which > 32 && e.which < 48) || (e.which > 57 && e.which < 65) ||
(e.which > 90 && e.which < 97))

??????????????????????????  (what is the expresion for
"window.event.returnValue = false" for NS?? )
}

I need urgent help.

Thanks



  Return to Index