Quote:
Originally Posted by iBall
If you are including me then I disagree because ...
|
I was directing that at everyone but since you mention it I specifically disagree with letting any intermediate and beginner JavaScript programmers know that prompt() even exists because it creates bad habits and they really ought to be using a simple form in their page to collect the information (which is no harder to code and a lot more useful for them to know).
Anywhere that beginners are using prompt() they should be using <form>
prompt was only easier back when document.write was used instead of innerHTML and so you couldn't actually display anything in the actual web page.