|
|
|
<body>
Welcome back//Insert a normal html string
<script language="javascript">//Define the script container
/*
Get the user name.
Note this method will freeze the script engine since it makes a model dialog.
The value returned by the prompt method is variable (dynamic) content.
*/
Var name = prompt("Your Name","your name")
/*
Write the name value to the document
with the "write" method of the document object.
*/
document.write(name);
</script>
Hope you enjoy your stay// Insert the last normal html string
<body>