scripter73
Programmer
Hi,
I have a Javascript function that's called when the user selects a choice from a drop-down box in my HTML code.
Presently, the alert box pops up the choice that the user entered. My question - How can I retrieve the Name/Phone number from a user using an Alert box? Also, I'd like to put the values in a variable somewhere.
I'm sure I've done it before, its just been a while.
Here's what I have so far:
function process_report(){
if (document.form1.reportby.value != "Charter Policyholder"
window.alert('You selected ' + document.form1.reportby.value);
*(instead I want to ask the user their name/number and return it to some variable)*
}
I have a Javascript function that's called when the user selects a choice from a drop-down box in my HTML code.
Presently, the alert box pops up the choice that the user entered. My question - How can I retrieve the Name/Phone number from a user using an Alert box? Also, I'd like to put the values in a variable somewhere.
I'm sure I've done it before, its just been a while.
Here's what I have so far:
function process_report(){
if (document.form1.reportby.value != "Charter Policyholder"
window.alert('You selected ' + document.form1.reportby.value);
*(instead I want to ask the user their name/number and return it to some variable)*
}