skl
09-23-2005, 02:19 PM
Hi,
I have no problem in detecting the CTRL key with the javascript code event.keyCode or event.ctrlKey call in my script function. But once I called the setInterval() (e.g. <body onLoad='setInterval("poll()", 1000)'>) then the event is always "null". Please help.
Note: poll() is my javascript method where I would like to detect the CTRL key pressed.
Best Regards
skl
I have no problem in detecting the CTRL key with the javascript code event.keyCode or event.ctrlKey call in my script function. But once I called the setInterval() (e.g. <body onLoad='setInterval("poll()", 1000)'>) then the event is always "null". Please help.
Note: poll() is my javascript method where I would like to detect the CTRL key pressed.
Best Regards
skl