Re: prompt not working
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: prompt not working

From: joemac <j_mcarthur@usa.net>
Date: Wed Nov 30 2005 - 19:40:34 CET

>I donno... It works as it posted, maybe your did not type the name in?

As I said, the dialog box does not appear - so there is no place for me
to type in the name.

>Few advises though: document.write() clears the document content after
>the page has been finished to load. It is almost never what you want.
>You may want to use DOM methods instead.

Thanks for the tip but at this point I am simply following the
instructions as given in the book that I am using to learn the
language. If it is not the best approach then I'm sure the author will
explain that later on and give new examples. Since you said the code
worked for you as posted then it must be viable. There must be
something different about my runtime environment which causes it not to
work for me, and this is what I need to get to the bottom of.

I tried executing the code that you provided as a counter example and
it likewise did not work for me as it should have. No prompt box
appeared and I got the following result:

You did not tell me your name... :-(

Joe
Received on Sat Dec 3 04:33:49 2005