I understand that apostrophe's and speechmarks can both be used in Javascript to identify a string, and that you should use a backslash to identify an apostrophe as an apostrophe rather than a string delimiter. However, I've got this line of code below and I can't get my head around how to make the syntax correct so that when the line is written to a new page it will work, can someone help?
(I've not back-slashed anything so that I can see where they should go in whoever answers answer!)
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
Code:
document.write("<a href='javascript:navigateto('" + loc + "')'>");
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments