OZONE Asylum
Forums
DHTML/Javascript
window.event & window.event.which
This page's ID:
29080
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi Edmond, First off, great script! had to alter a line in the script to get it working properly in Firefox2, to get the intCode I altered the following line: [code] var intCode = evt.charCode == undefined ? evt.keyCode : evt.charCode; [/code] to be: [code] var intCode = (evt.charCode) ? evt.charCode : evt.keyCode; [/code] this allowed the switch statement to process the backspace, delete key etc. properly. I also added a couple of switches to the switch in order to cater for users navigating back and fourth the input control, i know that the folks I work for would need that lol, users! The additions were: [code] case(intCode == 37): case(intCode == 39): [/code] thought you might like to know in case you would like to update your script... Regards, Bono
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »