Back

Ask Name 002

 

 

This script ask the visitor for a user name and welcomes them after they type in a name.  If the visitor doesn't answer they are sent to a BYE page. It doesn't offer any sort of security, just the appearance.  See it work..

This script doesn't need to be configured

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

ans = prompt("User Name?","")
if (ans) {
alert("Welcome "+ans)
}
else {
window.location="bye.htm"
}

</SCRIPT>
 

 

Copyright 2003 Ultimatephp.com.com