Im looking to open a popup window which will contain an image.
Im already using:
$(document).height();
$(document).width();
To set the width and height of the pop-up window so it fills as much of the screen as possible. How can I then work out the best height and width of the image so that the image does not produce scrollbars in the popup window?
This is simple
(HTML)
(JS)