The error is occurring on the line you list as 7:
text += "msg += '<form name="myform" method="POST"
action="formvalidate.htm" enctype="text/plain" onsubmit="return
validateForm(this)">\n';";
The double quotes that you're using in name="myform" have to be escaped
as \". So it should read:
text += "msg += '<form name=\"myform\" method=\"POST\"
action=\"formvalidate.htm\" enctype=\"text/plain\" onsubmit=\"return
validateForm(this)\">\n';";
There are many more lines that need to be changed like this.
> here's my whole code.. i have two error here.. expected ';' object
e> xpected at line 06.
>
*> ****javascript****
> 01 function popupWin() {
0> 2 text = "<html>\n<head>\n<title>Splash Window - Spawn</title>\n";
0> 3 text += "<script language='JavaScript'>\n";
0> 4 text += "function popupLogWin() {\n";
0> 5 text += "msg = '<html>\n<head>\n<title>Login Window -
> Spawn</title>\n</head>\n';";
0> 6 text += "msg += '<body>\n';";
0> 7 text += "msg += '<form name="myform" method="POST"
> action="formvalidate.htm" enctype="text/plain" onsubmit="return
> validateForm(this)">\n';";
0> 8 text += "msg
+= '<table>\n<tr>\n<td>FullName:</td>\n<td><input
t> ype="text" name="fullname" size="32"></td>\n';";
0> 9 text += "msg += '</tr>\n<tr>\n<td>Email Address:</td>\n<td><input
t> ype="text" name="validemail" size="32"></td>\n';";
t> ext += "msg += '</tr>\n<tr>\n<td colspan="2">\n';";
t> ext += "msg += '<input type="submit" value="Register"
n> ame="submit"> or
> <a href="javascript:document.myform.submit
(> );">Submit</a>\n';";
t> ext += "msg += '</tr>\n</table>\n</form>\n';";
t> ext += "}\n";
t> ext += "function winProp(msg) {\n";
t> ext += "newWindowProp = window.open
(> '','newWin','left=450,top=300,width=500,height=400');\n";
t> ext += "newWindowProp.document.write(mgs);\n";
t> ext += "setTimeout('closeWinProp(newWindowProp)', 7000);\n";
t> ext += "}\n";
t> ext += "function closeWinProp(newWindowProp) {\n";
t> ext += "newWindowProp.close();\n";
t> ext += "}\n";
t> ext += "</script>\n";
t> ext += "</head>"
t> ext += "<body onLoad="popupLogWin()" bgcolor="white" text="black"
l> ink="blue" vlink="purple" alink="red">\n";
t> ext += "<center>\n<br>";
t> ext += "<a href='http://javascript.internet.com/new'
t> arget='_blank'><h2>Polmap Encoding</h2></a>";
t> ext += "</center>\n</body>\n</html>\n";
s> etTimeout('windowProp(text)', 2000); // delay 2
seconds before
o> pening
> }
f> unction windowProp(text) {
n> ewWindow = window.open
(> '','newWin','left=450,top=300,width=500,height=400');
n> ewWindow.document.write(text);
s> etTimeout('closeWin(newWindow)', 7000); // delay 7 seconds before
c> losing
}>
f> unction closeWin(newWindow) {
n> ewWindow.close(); // close small window and
d> epart
}>
>
*> ***html*****
> <body onLoad="popupWin()" bgcolor="white" text="black" link="blue"
v> link="purple" alink="red">
<> p><a href="javascript:spla****
(> 'splashwin', 'file:///C|/cygwin/usr/local/apache/upload/polmap/PreEncod
ing
/> sort_table1.htm', 450, 250, 550, 350, 0, 0, 0, 0, 0)"
t> arget="_self">splashwin</a></p>
> ***end******
>
p> ls help.
>