quotes problem

J

John Smith

Help is appriciated.

I have a line of code that is driving me nuts.

document.write("<a href='javascript:window.external.AddFavorite('http://0mygoodness.com','Something,
Something, Something')'>")

I had the
<a href='javascript:window.external.AddFavorite('http://0mygoodness.com','Something,
Something, Something')'>
in another script as
<a href="javascript:window.external.AddFavorite('http://0mygoodness.com','Something,
Something, Something')">
the difference being the double quotes before javascript and before
the closing >.

The error I am getting is a syntax error, code 0. Through trial and
error I have narrowed it down to this line of code. BIG question is
how should I quote the line???

Thank you in advance for your help.
 

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
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top