Fixed size pop-up window

Pop up window, using target=”_blank”:

<a href=”image.jpg” target=”_blank”><img src=”image_thumb.jpg”></a>

Fixed size pop up window (not resizable, and no scrollbars), using onclick=”window.open()

<a href=”image.jpg” onclick=”window.open(this.href, ‘_blank’, ‘width=400, height=600, left=300, top=100’); return false;”><img src=”image_thumb.jpg”></a>

Fixed size pop up window, resizable with scrollbars, using onclick=”window.open()

<a href=”image.jpg” onclick=”window.open(this.href, ‘_blank’, ‘width=400, height=600, left=300, top=100, scrollbars, resizable‘); return false;”><img src=”image_thumb.jpg”></a>

Advertisements
%d bloggers like this: