I am an inexperienced javascript user, and am seeking assistance with opening new windows when clicking on an image. I want the new window to open to the size of the picture, which it does, however, the picture is offset approximately 10 pixels or so from the top, therefore, some of the image is cut off. I am using Windows XP and IE6.
I am using the following code to open the window.
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"#" onclick="javascript:location='view.php?id=4'; window.open('images/picture.jpg', 'image_window', 'HEIGHT=240, WIDTH=240, top=100, left=100, scrollbars=no')">
what do i have to do to make sure the picture is not offset at all?
I am using the following code to open the window.
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"#" onclick="javascript:location='view.php?id=4'; window.open('images/picture.jpg', 'image_window', 'HEIGHT=240, WIDTH=240, top=100, left=100, scrollbars=no')">
what do i have to do to make sure the picture is not offset at all?