Advertisement
ASP_Volume2 Browser/ System Services #39553

Display Visitor's Name

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.

AI

Yapay Zeka Özeti: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kaynak Kod
original-source
<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>

Orijinal Yorumlar (3)
Wayback Machine'den kurtarıldı