Back to Index

Ask Name 001

 

 

This a simple Prompt, it does nothing but welcomes the Visitor when he inputs their name.  If they don't input a name it welcomes them anonymously.

This script doesn't need to be Configured.  It should be pace in the body of the HTML Document

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">

ans = prompt("Name?","")
if (ans) {
alert("WELCOME! "+ans)
}
else
{
alert("Welcome Anonymous Visitor")
}

</SCRIPT>
 

 

Copyright 2003 Ultimatephp.com