Forum Moderators: open

Message Too Old, No Replies

help with prompts

         

blueguy

9:06 pm on May 19, 2004 (gmt 0)

10+ Year Member



I'm a javascript newbie. I need some help. If you use a variable, and the variable is a prompt for info, how come it isn't popping up when i load the page. Here's the code:
var address_info = prompt("Address", "Address")
var zip_code = prompt("Zipcode", "Zipcode")
var state_info = prompt("State, like HI is Hawaii", "State")
var city_info = prompt("City", "City")

will1480

9:29 pm on May 19, 2004 (gmt 0)

10+ Year Member



works fine for me in NS and IE. Is there something else thats making it crap out before that?

will1480

9:30 pm on May 19, 2004 (gmt 0)

10+ Year Member



Well, i guess I better make sure with you being a self proclaimed newbie and all. You have the code like this:
<script language="JavaScript" type="text/javascript">
var address_info = prompt("Address", "Address")
var zip_code = prompt("Zipcode", "Zipcode")
var state_info = prompt("State, like HI is Hawaii", "State")
var city_info = prompt("City", "City")
</script>

blueguy

1:47 am on May 21, 2004 (gmt 0)

10+ Year Member



Maybe it's beacuse I'm using OS X, or Safari. (the problem) I'll try IE Mac.