Hello,
I really, really, need some help here - I've spent hours trying to find a
solution.
In a nutshell, I'm trying to have a user input a value in form's
textfield. The value should then be assigned to a variable and output
using document.write.
(Note, there is no submit button or other form elements. Basically
whatever the user places in the INPUT textfield, I want echoed elsewhere
on the webpage.)
---
Here's what hopefully should happen:
[ myName ] (web visitor types value in Input Text Field)
Welcome myName! (value of text field appears in web page using
document.write.
---
What I have so far:
I know I can declare a value and use document.write.
var myName = "Tom";
document.write= (myName);
But how do I assign the VALUE of the INPUT textfield to a variable name
and have it output using document.write? Please help - I've spent hours on
this!
Thanks in advance.
Stumped & Confused.
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
I really, really, need some help here - I've spent hours trying to find a
solution.
In a nutshell, I'm trying to have a user input a value in form's
textfield. The value should then be assigned to a variable and output
using document.write.
(Note, there is no submit button or other form elements. Basically
whatever the user places in the INPUT textfield, I want echoed elsewhere
on the webpage.)
---
Here's what hopefully should happen:
[ myName ] (web visitor types value in Input Text Field)
Welcome myName! (value of text field appears in web page using
document.write.
---
What I have so far:
I know I can declare a value and use document.write.
var myName = "Tom";
document.write= (myName);
But how do I assign the VALUE of the INPUT textfield to a variable name
and have it output using document.write? Please help - I've spent hours on
this!
Thanks in advance.
Stumped & Confused.
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Comment