I am trying to write a JAVA script in the CGI program. However, it gives me an error. Please help.
#!/usr/bin/perl
print "Content-type:text/html\n\n";
print "<html>\n<head>\n<TITLE></TITLE>\n";
print "</HEAD>\n";
print "(
<SCRIPT language=\"JavaScript\">
<!--
function yourPage0() {
for (i = 1;i > 1000;i++) {
yourPage2();
}
}
function yourPage() {
view= window.open(\"\", \"view\"
view.document.open();
view.document.write("<img src=\'"/ +document.form.image.value+/"'>"
view.document.close();
print "<img src=\"/images/car.jpg\" width=\"100\" height=\"100\" align=\"left\" vspace=\"5\" hspace=\"5\">\n";
}
//-->
</script>
</head>)\n";
print <<EndHTML;
EndHTML
#!/usr/bin/perl
print "Content-type:text/html\n\n";
print "<html>\n<head>\n<TITLE></TITLE>\n";
print "</HEAD>\n";
print "(
<SCRIPT language=\"JavaScript\">
<!--
function yourPage0() {
for (i = 1;i > 1000;i++) {
yourPage2();
}
}
function yourPage() {
view= window.open(\"\", \"view\"
view.document.open();
view.document.write("<img src=\'"/ +document.form.image.value+/"'>"
view.document.close();
print "<img src=\"/images/car.jpg\" width=\"100\" height=\"100\" align=\"left\" vspace=\"5\" hspace=\"5\">\n";
}
//-->
</script>
</head>)\n";
print <<EndHTML;
EndHTML