Multiple nested quotes

How do I do multiple nested quotes (3)?  The situation is a function that sets the innerHTML of a <TD> to contain a link that references another function, with parameters. I tried alternating  quotes like you do when you only have one set of quotes nested inside another, but that didn't work for the additional set of quotes.
html = 'Demonstration Project (Demo1)<td><a href = "javascript:ShowBugs (102507,'Demonstration+Project+(Demo1)',0,2)">Current Bugs</a>';

Who is Participating?
BustaroomsConnect With a Mentor Commented:
in your example you need to escape the single quotes with a slash

html = 'Demonstration Project (Demo1)<td><a href = "javascript:ShowBugs (102507,\'Demonstration+Project+(Demo1)\',0,2)">Current Bugs</a>';
drr37Author Commented:
ok, thanks, it worked
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.