<html>
<head>
<title>JsForForm</title>
</head>
<body>
<script language=javascript>
function createStory()
{
var storyMessage="<html><head></head><title>good</title>"+"<body><h1>What's the time now,My Name is Tao Yong Dong</h1>"+document.madlibs.input1.value+"<br>"+document.madlibs.input2.value+"</body></html>";
var listWin=window.open("","story","width=400,height=300");
listWin.document.write(storyMessage);
listWin.document.close();
}
</script> <form name="madlibs">
<table>
<tr>
<td>Plural Noun:</td>
<td><input type=text name="input1"/></td>
</tr>
<tr>
<td>Part Of Body:</td>
<td><input type=text name="input2"></td>
<tr>
<td>Verb:</td>
<td><input type=text name="input3"></td>
</tr>
</table>
<input type=button value="Create Story" onclick="createStory();">
</form> </body>
</html>
<head>
<title>JsForForm</title>
</head>
<body>
<script language=javascript>
function createStory()
{
var storyMessage="<html><head></head><title>good</title>"+"<body><h1>What's the time now,My Name is Tao Yong Dong</h1>"+document.madlibs.input1.value+"<br>"+document.madlibs.input2.value+"</body></html>";
var listWin=window.open("","story","width=400,height=300");
listWin.document.write(storyMessage);
listWin.document.close();
}
</script> <form name="madlibs">
<table>
<tr>
<td>Plural Noun:</td>
<td><input type=text name="input1"/></td>
</tr>
<tr>
<td>Part Of Body:</td>
<td><input type=text name="input2"></td>
<tr>
<td>Verb:</td>
<td><input type=text name="input3"></td>
</tr>
</table>
<input type=button value="Create Story" onclick="createStory();">
</form> </body>
</html>
==> <form name="madlibs"><td><input type=text name="input3></td>
==><td><input type=text name="input3"></td>