Helpful Information
Home
Categories
Contact us
Category: Dynamic Drive scripts help
pop-it menu question
I am having trouble embedding an ' in a linkset variable either in a title= or an href=. For instance, if I wanted the following:
linkset[0]='<div class="menuitems"><a title="Webmaster's Links"href="weblink.htm">Links</a></div>'
How do I get "Webmaster's"?
Thanks.
Escape it with a backslash:
linkset[0]='<div class="menuitems"><a title="Webmaster\\'s Links"href="weblink.htm">Links</a></div>'
privacy (GDPR)