Click to See Complete Forum and Search --> : Link that give a popup image
sushigirl
09-04-2004, 05:17 PM
Ok,
I want to make a link...
If you click on the link, you will have a popup image that you will be able to close and get back to the original page.
How do I do that?
Thanks for your help!
PhillMc
09-04-2004, 06:01 PM
There are two ways to do it. One is using the 'target' attribute.
<a href="somewhere.htm" target="_blank">
This method isn't really correct where semantecs are concerned, and some pop-up blockers will stop it.
The other is with JavaScript:
<a href="somewhere.htm" onClick="window.open('somewhere.htm')">
This way tends to be more accessible because if javascript is disabled, the user still gets to the file because the href is set. :)
Bear in mind, though, that any method you use to create 'popups' has a chance of getting blocked by popup blockers.