E
Evan Wong
I have problem to get onkeyup event. If we put the event in HTML
statement like -
"<input name=field1 size=16 onkeyup="javascript:function1();>"
it works.
If we put in JavaScript code like this
var oElmt = document.createElement("input");
:
oElmt.onkeyup = function () {javascript:function1() };
or
oElmt.onkeyup = "javascript:function1()";
It will work sometimes, and failed sometimes. Most of the time I need
to switch to another field and back, to make the event working.
Anybody experienced this problem before?
statement like -
"<input name=field1 size=16 onkeyup="javascript:function1();>"
it works.
If we put in JavaScript code like this
var oElmt = document.createElement("input");
:
oElmt.onkeyup = function () {javascript:function1() };
or
oElmt.onkeyup = "javascript:function1()";
It will work sometimes, and failed sometimes. Most of the time I need
to switch to another field and back, to make the event working.
Anybody experienced this problem before?