L
larrylyons
I don't understand why I'm getting Unterminated String Literal error
MY JAVASCRIPT
function test(){
newWindow =
window.open("","","scrollbars,resizable,height=300,width=200,top=5,left=50",align='center');
newWindow.document.write( "<html><head><title>The
Title</title></head>")
newWindow.document.write( '<body bgcolor="#ffffcc"
onBlur="window.close()"')
newWindow.document.write("<BR>This is a test<BR>")
newWindow.document.write('<h3><center><a href="#"
onClick="window.close()">Close Window</a>
</h3></center></body></html>');
}
BELOW IS WHAT I GET FROM THE JAVASCRIPT MONITOR
function test(){
newWindow =
window.open("","","scrollbars,resizable,height=300,width=200,top=5,left=50",align='center');
newWindow.document.write( "<html><head><title>The
Title</title></head>")
newWindow.document.write( '<body bgcolor="#ffffcc"
onBlur="window.close()"')
newWindow.document.write("<BR>
<!-- following code added by server. PLEASE REMOVE -->
<!-- preceding code added by server. PLEASE REMOVE -->This is a
test<BR>")
newWindow.document.write('<h3><center><a href="#"
onClick="window.close()">Close Window</a>
</h3></center></body></html>');
}
LINK TO THE PAGE
http://ca.geocities.com/[email protected]/test.html
Any help would be greatly appreciated.
MY JAVASCRIPT
function test(){
newWindow =
window.open("","","scrollbars,resizable,height=300,width=200,top=5,left=50",align='center');
newWindow.document.write( "<html><head><title>The
Title</title></head>")
newWindow.document.write( '<body bgcolor="#ffffcc"
onBlur="window.close()"')
newWindow.document.write("<BR>This is a test<BR>")
newWindow.document.write('<h3><center><a href="#"
onClick="window.close()">Close Window</a>
</h3></center></body></html>');
}
BELOW IS WHAT I GET FROM THE JAVASCRIPT MONITOR
function test(){
newWindow =
window.open("","","scrollbars,resizable,height=300,width=200,top=5,left=50",align='center');
newWindow.document.write( "<html><head><title>The
Title</title></head>")
newWindow.document.write( '<body bgcolor="#ffffcc"
onBlur="window.close()"')
newWindow.document.write("<BR>
<!-- following code added by server. PLEASE REMOVE -->
<!-- preceding code added by server. PLEASE REMOVE -->This is a
test<BR>")
newWindow.document.write('<h3><center><a href="#"
onClick="window.close()">Close Window</a>
</h3></center></body></html>');
}
LINK TO THE PAGE
http://ca.geocities.com/[email protected]/test.html
Any help would be greatly appreciated.