Hello every one, I’m very new at this jscript stuff so any help will be greatly appreciated!
I’m trying to write the text input from a text area to a new document. This is what I have so far:
<SCRIPT type=”text/javascript”>
function create()
{
dothis = new Date()
month = dothis.getMonth()
month = (month * 1) + 1
day = dothis.getDate()
year = dothis.getFullYear()
ow=window.open()
go=ow.document.write
b=” “+month+”/”+day+”/”+year+”<br>”
go(“<HTML><HEAD><TITLE>Party On !</TITLE>”)
go(“</HEAD><BODY BGCOLOR=’#999999′ LINK=’#0000FF’ VLINK=’#0000cc’>”)
go(“<HR WIDTH=100%>”)
go(“<TR><TD WIDTH=550 BGCOLOR=#FFFFFF>”)
go(b+document.form1.ta.value)
go(“</TD></TR></TABLE>
go(“</CENTER></BODY></HTML>”)
}
</SCRIPT>
<form name=”form1″ action=””>
<textarea name=”ta” cols=”60″ rows=”40″></textarea>
<input type=”Button” value=”update” onclick=”create()”>
</form>
Keep getting error “document.form1.ta” undefined.
????????????????????