I am pulling a name from a database with a url to go with it. The name appears as a link. In the link I am using the javascript mouseover to change the window status. If the name happen's to have an apostrophe (one of these ') I get a javascript error. If I use URLEncodedFormat it ignores the ' but then the status has %20 all over it for every space. Any ideas how to change the status without the ' interferring?
<a href="#URL#" onMouseover="window.status=('#name#'); return true">#name#</a> --Not working
<a href="#URL#" onMouseover="window.status=('#URLEncodedFormat('#name#')#'); return true">#name#</a>
-- Not quite good enough DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
<a href="#URL#" onMouseover="window.status=('#name#'); return true">#name#</a> --Not working
<a href="#URL#" onMouseover="window.status=('#URLEncodedFormat('#name#')#'); return true">#name#</a>
-- Not quite good enough DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic