I’m using the following code to open the link in a new window, its working in IE8, Chrome and Opera, but in Firefox 6 it’s opening in a new tab. How can I fix that?
var popupName;
function openPopup(href) {
popupName = window
.open(
href,
'Details',
'scrollbars=1,resizable=no,location=no,menubar=no,status=no,toolbar=no,width=700,height=710');
popupName.focus();
return false;
}
This is controlled by the user preferences in the browser itself. Correct me if I’m wrong, but I think this can not be altered.
Why would you like a new window anyway? Let the user decide (with the browser preferences) if it’s a new window or a new tab.. Same effect, less annoyance.