You can pass window.open() sizes for this:
Edited for an updated question: note that [rel|= changed to [rel= .
$(document).ready(function() { $('a[rel|=external]').click(function(){ window.open(this.href); return false; }); $('a[rel=external-new-window]').click(function(){ window.open(this.href, "myWindowName", "width=800, height=600"); return false; }); });β
You can test it here , with dimensions other than the tab being the key here. Keep this in mind, although it can still open on a tab , there are many browser options, extensions, and plugins to prevent pop-ups.
In addition, from the user's point of view, too many pop-ups encourage me to hunt you and hit you in the eye with a salad fork and / or pop up a window and throw you out of it, so please use this sparingly.
source share