DECLARING AND USING VARIABLES ON A PROMPT DIALOG BOX


Within Your <head> . . . </head> Section:

</script><script type="text/javascript" language="Javascript"><!--HIDE code from older browsers
var name=prompt("Please type your name and click OK.","")
-->
</script>



Within Your <body> . . . </body> Section:

<script type="text/javascript" language="Javascript"><!--document.write("Welcome to my web page, " + name + "!")
-->
</script>