Hi all,
Here is my code,
[CODE=javascript]if(event.which)
keycode = event.which;//For Mozilla
else
keycode = event.keyCode;//For IE
[/CODE]
But my problem is, the value of keycode returns 46 for pressing "DELETE" key and "." key.
How can I differentiate this?
Please help me with code in both the browsers.
Thanks...
User Profile
Collapse
-
Suresh started a topic How do I insert a char into the textfield on the keydown event of another textfield?in JavascriptHow do I insert a char into the textfield on the keydown event of another textfield?
How do I insert a char into the textfield on the keypress event of another textfield?
I have two textboxes, "text1" and "text2".
[COLOR=DarkRed]Important:[/COLOR]
"text1" is outside the table.
"text2" is inside the table cell.
On the keydown/keypress/keyup event of "text1", the character which I entered in the "text1" must display... -
Is Mozilla Supports onBlur event?
Can anybody tell me that whether Mozilla supports onBlur event?
I tried onBlur event with IE5 and also with Mozilla. But Mozilla is not supporting.
Please give me a solution.
Regards
Suresh. -
How to handle ondrag event in TD ?
I have a table.
...Code:<table border=1> <tr> <td onmousedown="create(this)"></td> <td onmousedown="create(this)"></td> </tr> <tr> <td onmousedown="create(this)"></td> <td onmousedown="create(this)"></td> </tr> </table> <script language="javascript">
Last edited by Niheel; Nov 18 '05, 07:41 AM.
No activity results to display
Show More