shalitd
asked on
Unterminated string constant error
Every time i open the web site i have created i get the following java script error message :
Unterminated string constant error
this is the realted line :
NWA=window.open("http://freehostingad.domaindlx.com","PON"," toolbar=0, location=0 ,status=0, menubar=0, scrollbars =0,resizab le=0 width=300,height=45")
What is the problem ?
Unterminated string constant error
this is the realted line :
NWA=window.open("http://freehostingad.domaindlx.com","PON","
What is the problem ?
It would be easier to "see" it directly on the site itself. URL ?
There's a comma missing between "resizable=0" and "width=300", but even so, the line you pasted is just fine (no javascript errors). So I guess the problem comes from the lines before that one.
I agree with _nn_. Usually, this is due to a hard return in the middle of a line. For instance, in what I'm looking at above I see
("http://freehostingad.domaindlx.com","PON","toolbar=0,locat ion=0,stat us=0,menub ar=0,scrol lbars=0,re sizable=0
on one line and
width=300,height=45")
on another. This will cause that exact error if that is how it really looks in your code.
Also, check any other JavaScript that comes before this to ensure that all the Quotes are correct.
("http://freehostingad.domaindlx.com","PON","toolbar=0,locat
on one line and
width=300,height=45")
on another. This will cause that exact error if that is how it really looks in your code.
Also, check any other JavaScript that comes before this to ensure that all the Quotes are correct.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.