[Overview] [Basics] [More] [Fun] [Class 2] [If] [Functions] [Timing] [Queries] [References] [Examples] [Libraries] [Assignments]
This document illustrates the insertion of text into an HTML document with JavaScript.
<script language="javascript1.1">
var person = prompt("What is your name?", "Some bozo");
document.write("<p>Hey there " + person + ", welcome to my page!");
</script>
[Overview] [Basics] [More] [Fun] [Class 2] [If] [Functions] [Timing] [Queries] [References] [Examples] [Libraries] [Assignments]
Source text written by Samuel A. Rebelsky.
This page may be found at http://www.math.grin.edu/~rebelsky/Tutorials/JavaScript/Spring1999/Examples/insertname.html
Source text last modified Mon Apr 12 12:31:46 1999.
This page generated on Mon Apr 12 12:39:01 1999 by SiteWeaver. Validate this page's HTML.