If the link doesn't need to be a certain size or have any of the toolbars, scrolling, address bar, etc turned off, then you can just open the link by modifying the link's target. A target of _blank will open a new window each time:
Code:
<a href="http://www.google.com" target="_blank">Click</a>
Otherwise if you want scrolling turned off, address bar hidden, etc.. then you add the javascript :
Code:
<a href="http://www.google.com" target="_blank" onclick="window.open(this.href,'newWindowName','scrollbars=no,resizable=no,width=550,height=600');return false;">Click</a>
The JS code above will open a new window, even if the user has JS turned off.
Last edited by funkdaddu; 09-18-2006 at 02:48 PM..
|