<HTML>
<HEAD>
<SCRIPT language="JavaScript">
function newpage()
{
var thename= document.myform.yourname.value;
document.open();
document.write(thename);
document.close();
}
</SCRIPT>
</HEAD>
<BODY>
<FORM name="myform">
Name: <INPUT type="text" name="yourname" size="25">
<P>
<INPUT TYPE="button" value="Click Here for a New Page" onClick="newpage()">
</FORM>
</BODY>
</HTML>
|