I have this script
When i run the script it works fine it asks for my name then alerts it back to me but when it is ment to put it into the display box it gets and error saying
"document.getEl ementById("name display") has no properties"
i am stumped
Can you please help
Thanks Scott
Code:
function getname(){ <script type="text/javascript"> var name = prompt('What is your name?'); while(name==''){ name = prompt('We need your name?'); } alert(name); document.getElementById('namedisplay').value=name; } getname(); </script> <input name="namedisplay" type="text" id="namedisplay" value="" />
"document.getEl ementById("name display") has no properties"
i am stumped
Can you please help
Thanks Scott
Comment