[Maybe a little off-topic but I thought you'd be likely to know]
I have page titles which sometimes require single quotes, i.e. "Don't Look Now"
The titles also need to appear in a javascript onClick function like this:
<a href="foo.htm" onclick="myfunction('Don't Look Now')">
as you can guess, that breaks the JavaScript because of the quote in "Don't"
so I escaped the quotes and now I have this:
myfunction('Don't Look Now')
but it still breaks in FireFox, and the JavaScript console comes up with an error which points to the "'" as if it were a quote:
Error: missing ) after argument list myfunction('Don't Look Now') ----------------^
anyone got an explanation? Am I missing something obvious? It's the same if I use ' instead.
------------------------------------------------------------
"Have You Validated Your Code?"
John Horner (+612 / 02) 9333 3488
Senior Developer, ABC Online http://www.abc.net.au/
------------------------------------------------------------
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************