|
Don't use # as an href... just link to your file as normal and use the code below so that non-js browsers can access the content:
<a href="image.jpg" onclick="window.open(this.href, 'myWindow', 'width=400, height=300');return false;" >Link Text</a>
and # actually just points to a blank anchor name, so in essence, the page just links back to itself. (it has nothing to do with JS) The return false will stop the browser from following the link, and loading the image in the current window.
Last edited by funkdaddu; 01-18-2007 at 11:53 AM..
|