|
1. Prompt Box
This example takes the words you typed into the box when the page loaded and writes them into the page dynamically. The Javascript that triggers the prompt box is between the <head> tags. var yourName=prompt("What is your name?",""); Some javascript is written into the body of the page that picks up that name and writes it dynamically into the page title.
<script language="javascript">
4. Time Clock Javascript can access your computer's internal clock and display it dynamically.
function dailyTask() {
|