- From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
- Date: Mon, 31 Jul 2006 14:08:23 +1000
- To: magick <jasper.magick@gmail.com>
- CC: www-html@w3.org
magick wrote: > ... <noscript> *is* needed here. No it isn't. > <script type='text/javascript'> > <!-- > document.write("<p><a href='javascript:sword_enlarge()'><img > src='thumb_sword.gif' alt='My Sword' /></a></p>"); > //--> > </script> > <noscript><p><a href='sword.gif'><img src='thumb_sword.gif' alt='My > Sword' /></a></p></noscript> This is handled much more easily by doing this: <a href="sword.gif" onclick="annoyingPopup();"><img src="thumb_sword.gif" alt="..."/></a> The annoyingPopup() function can then just read the value of the href attribute so it knows what content to load in the window. To make that even better, the function could be added as a listener of the click event dynamically, instead of using the onclick attribute. -- Lachlan Hunt http://lachy.id.au/
Received on Monday, 31 July 2006 04:08:41 UTC