Unterminated String Literal

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.
 
M

Martin Honnen

I don't understand why I'm getting Unterminated String Literal error
BELOW IS WHAT I GET FROM THE JAVASCRIPT MONITOR
newWindow.document.write("<BR>
^^^^^^
There is your unterminated string literal, complain to your web hosting
service that they insist on inserting the lines below in the middle of
your JavaScript code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top