Script Categories

Messages >>> Name Write.

Instead of alerting the user with "Welcome Name!" you can write it into your page. This is neat for users to suddenly be reading along and just stumble upon their own name!

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
var namePrompt =  prompt("Who are you?","");
if (namePrompt == null || namePrompt == "") namePrompt = "Web Surfer";
function dispname (namePrompt) {

document.write("<font size=3 color=red>Thanks for visiting, ");
// End -->

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

Online casino