Last Update:
Copyright ©: Circle Software

Is there any way to prevent the prompt boxes having this default entry?

yes, use: var name1=prompt("Please enter first name?", "");

If there is "undefined" it means something can be defined and you did not define it.

So all you have to do is define it. When in doubt Google for a tutorial

on your problem, subject. I would use: "JavaScript prompt" to find information

on the prompt syntax. I found: JavaScript Prompt


Link to original question: 4427

  Return to the: