README.md
December 5, 2022 ยท View on GitHub
Description
Posted by PJ Barnes (pb@alphalink.com.au)
to newsgroup comp.lang.javascript (13 October, 1998)
Description: This script prompt the user to enter his name and displays a welcome message. Very simple and common script.
More Info
Copy part 1 into the BODY of your HTML document.
| Submitted On | |
| By | N/A |
| Level | Unknown |
| User Rating | 5.0 (5 globes from 1 user) |
| Compatibility | |
| Category | Browser/ System Services |
| World | Java |
| Archive File |
Source Code
<html>
<!-----------------------------------------Display Visitor's NameJavaScript archived by JavaScript Cornerhttp://pbc.bh1com.com------------------------------------------>
<head>
<title> </title>
</head>
<body bgcolor="#000000" text="#FFFF00" link="#00FFFF" vlink="#C0C0C0">
<!------------------------------------------########## Script Part 1 ###################Copy this part into the BODY of your page------------------------------------------->
<script LANGUAGE="Javascript">
<!--
var userName = prompt("Hello, this an experiment. What is your name?","anonymous");
document.writeln("Welcome to our web page, " + userName + "!");
//-->
</script>
<!------------------------------------------########## End of Script Part 1 ############------------------------------------------->
<p>Continue your page here..</p>
</body>
</html>