»
EnglishFrenchVietnamese

Print - Prompting for your Name 1 - JavaScriptBank.com

Full version: jsB@nk » Browser » Prompting for your Name 1
URL: http://www.javascriptbank.com/prompting-for-your-name-1.html

Prompting for your Name 1 © JavaScriptBank.comThis JavaScript requests visitors type name before enter the web page and then it write their name into the web page.

Full version: jsB@nk » Browser » Prompting for your Name 1
URL: http://www.javascriptbank.com/prompting-for-your-name-1.html



JavaScript
<SCRIPT language=JavaScript><!-- Hide the script from old browsers --// Michael P. Scholtis (mpscho@planetx.bloomu.edu)// All rights reserved.  July 28, 1996// You may use this JavaScript example as you see fit, as long as the// information within this comment above is included in your script.var namePrompt = prompt("Please enter your name.","");function dispname(namePrompt){document.write(" "+ namePrompt);}// --End Hiding Here --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<SCRIPT language=JavaScript><!--   {dispname(namePrompt);} //--></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->