W
wolverine
Hi,
Hope every body uses google suggest http://www.google.com/webhp?complete=1&hl=en.
For every key press in the input box google would offer suggestions. I
wanted to see which event is attached to the the INPUT element.
Since the element is inside the form 'f' and it's name is 'q'. So i
accessed it as
javascript:alert(document.f.q.onkeypress) from address bar
The problem is in Mozilla FireFox it is correctly giving me the
handler attached but in IE it was giving me 'null' indicating that
onkeypress is not attached. So i tried with 'onkeydown' and 'onkeyup'
as well. Both of them in IE returned null. So how does IE detect that
a key has been pressed.
So my doubt is a key event attached by google suggest in IE or google
suggest is using some other means to detect that a key event has
happened.
In case a key event is attached in IE, how to verify that it has been
really attached ? Could any one of you help me in this matter .
Thanks in Advance
Kiran.
Hope every body uses google suggest http://www.google.com/webhp?complete=1&hl=en.
For every key press in the input box google would offer suggestions. I
wanted to see which event is attached to the the INPUT element.
Since the element is inside the form 'f' and it's name is 'q'. So i
accessed it as
javascript:alert(document.f.q.onkeypress) from address bar
The problem is in Mozilla FireFox it is correctly giving me the
handler attached but in IE it was giving me 'null' indicating that
onkeypress is not attached. So i tried with 'onkeydown' and 'onkeyup'
as well. Both of them in IE returned null. So how does IE detect that
a key has been pressed.
So my doubt is a key event attached by google suggest in IE or google
suggest is using some other means to detect that a key event has
happened.
In case a key event is attached in IE, how to verify that it has been
really attached ? Could any one of you help me in this matter .
Thanks in Advance
Kiran.