Message Thread: |
View All MessagesBack to WebFX |
Isn't this a PHP error? What you could do is to define your text outside of the inline onclick handler. This removes the depencies to use <, > and " in the attribute which should really be prevented to be future compatible with XHTML (or escape them). <script type="text/javascript"> var helpTips = ["help tip 0", "help tip 1", "help tip 2", ... "help tip n"]; </script> <a class="helpLink" href="?" onclick="showHelpTip(event, helpTips[1]); return false">this</a> erik |