[thelist] javascript pop-up problem

James Aylard webmaster at equilon-mrc.com
Mon Jul 23 18:27:06 CDT 2001


Sharon,

> Ooooops, that was before I read your script, James, about it working when
> someone's JS is turned off.
>
> However, when I tested it I get a JS error that says "unterminated string
> constant." Perhaps I didn't copy it over correctly?

    Likely the word-wrap on the script. Put the entire onclick value on a
single line, and it'll work. A simplified example:

<a href="img.jpg" target="newWindow"
  onclick="fnOpen('img.jpg'); return false;">Image</a>

hth,
James Aylard





More information about the thelist mailing list