PDA

View Full Version : button or link to close window?



cgst81
01 Jun 2008, 05:28 AM
I have a window that opens up to see an image enlarged on my site (any tips on how to do that as well?) I would like to add a link or button on this page to close the window.
PLease advise.
Thanks :confused:

wbar
01 Jun 2008, 07:56 AM
well a link to close a window would look like this:
<a href="javascript:self.close()">close</a>
but i reccomend using lightbox (http://www.lokeshdhakar.com/projects/lightbox2/) to view enlarged images.