Simply using "target=_blank" will respect the user/browser preference of whether to use a tab or a new window, which in most cases is "doing the right thing".
- IE9+ Default: Tab : Preference: "Always open pop-ups in a new tab"
- Chrome Default: Tab. Hidden preference:
- Firefox: Default: Tab https://support.mozilla.org/en-US/kb/tab-preferences-and-settings
- Safari: Default: Tab
If you specify the dimensions of the new window, some browsers will use this as an indicator that a certain size is needed, in which case a new window will always be used. Stack overflow code example Stack Overflow