you can use <body onkeydown=function_name()>
and
<script language=javascript>
function function_name()
{
.... what you want to do here
}
</script>
-----Original Message-----
From: Crazee One [mailto:crazee_one@h...]
Sent: Friday, May 10, 2002 3:38 PM
To: javascript
Subject: [javascript] dynamically setting the keydown event of a dynamic
textbox
dynamically setting the keydown event of a dynamic textbox
I know how to generate textboxes. What I want to do is after i generated
this textbox, i want that generated textbox to dynamically create another
textbox using the keydown event.
For example
I start with tBoxa. When the user hits enter from tBoxa generates another
textbox called tBoxnew. I want this new tBoxnew to be able to fire of
that same function that tBoxa used to generate another textbox.
If anybody can help, it would be greatly appreciated
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20