estesflyer
Programmer
<script language="javascript">
<!--
var name=window.prompt("plz give me your name","Fred"
window.confirm("Is " + name + " correct?"
//-->
</script>
how can i make it to be when the user enters his/her name, then the command box comes up, when he clicks ok in the command prompt box, a certain line of code is run, but if he clicks cancel, than a different line of code will be run
<!--
var name=window.prompt("plz give me your name","Fred"
window.confirm("Is " + name + " correct?"
//-->
</script>
how can i make it to be when the user enters his/her name, then the command box comes up, when he clicks ok in the command prompt box, a certain line of code is run, but if he clicks cancel, than a different line of code will be run