[thelist] href=# versus href=JavaScript.....

N@ta$ natas at jam.rr.com
Wed Feb 21 21:51:28 CST 2001


I use the '#' system myself and have a question since this issue got me
thinking...

I visited one of my more recent site and am curious:

My current anchor code is:

<A HREF="#"
onClick="window.open('http://www.dagl.net/images/botd/babe45.jpg','BOTD','scrollbars,WIDTH=399,HEIGHT=620');"
onMouseOver="imageSwap('babe', 'http://www.dagl.net/images/babe_title_on.gif') ,
self.status='Babe of the Day'; return true;" onMouseOut="imageSwap('babe',
'http://www.dagl.net/images/babe_title.gif') , self.status=' '; return
true;"><IMG NAME=babe SRC=http://www.dagl.net/images/babe_title.gif WIDTH=226
HEIGHT=25 HSPACE=0 VSPACE=0 BORDER=0 ALT="."></A>

however, whenever the image link is clicked on and the popup opens, the parent
window also reloads the main page in which the image resides...does the
"javascript:" system eliminate this? If so, then I should be using that method
instead...

If not, does anyone know how to correct the reload?

Thx,

Jay





More information about the thelist mailing list