Is there any way to use CSS to trigger A Javascript event on a link? I'm thinking the answer is no. It would be nice to have a style sheet say open all links in a new window and describe parameters for that new window.
DrDoc
2:43 pm on Jul 6, 2004 (gmt 0)
While it is technically possible to do this in some browsers, because of a parsing bug, it is not something that CSS itself is meant to handle. In fact, it only works if there's certain JavaScript code embedded in the style sheet (which seems extremely redundant). If you want links to open in a new window you can do this easily with JavaScript alone.
So, considering all this -- no, you can't do it with CSS (and probably wouldn't want to anyway). Just use JavaScript ;)
bumpaw
3:33 pm on Jul 6, 2004 (gmt 0)
I thought so, but just wanted to make sure that there wasn't anything I was missing out on. Thanks:)