Opening a new window with controlled size
I have a page with 32 different links that I'd like to open in new windows; specifically, these are image thumbnails that I'd like people to be able to click to see a larger version of the picture. Ideally, I'd be able to control the size of the new window so that it fits the pic without obscuring the main page that they're looking at. However, the only way I've found to do this requires 32 different bits of JavaScript.
Any guidance or opinions on the pros and cons of having the smaller windows versus a mess of script? Or is there a better way to achieve the same end result?
[Edit: And while we're at it, if "target" is deprecated, how are we supposed to do this with a strict doctype?]
Last edited by Bedawyn; 03-30-2010 at 09:38 PM..
|