On 25/10/04 12:13 PM, "Patrick H. Lauke" <[EMAIL PROTECTED]> wrote:
> Kevin Futter wrote:
>
>> <a href="myWindow.html" onclick="popWindow('myWindow.html'); return
>> false;">Click here</a>
>
> Small modification: use popWindow(this.href) to refer back to the A
> element's HREF attribute. This way, if you change the href at some
> point, you won't have to remember to change the javascript as well, as
> it will automatically pick it up...
>
> Patrick H. Lauke
Thanks Patrick - I wasn't aware of this trick. Nice one.
Kevin
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************