[Javascript] Re: event handler protocol tip

Ben Curtis Quixote at LaMancha.org
Thu Aug 2 12:41:26 CDT 2001


onClick="javascript:window.open('itempic.html?Picture=ItemPic','','')"


This construction is common, and works in all browsers (I think), but you
don't need to specify "javascript:" inside an event handler. Everything
between the quotes after an event handler is interpreted as javascript
anyway. This line should be written as:

onclick="window.open('itempic.html?Picture=ItemPic','','');"

--
+Ben Curtis

"On the other side of the screen, it all looks so easy."






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010802/2964596b/attachment.htm>


More information about the Javascript mailing list