1

Hi I want to open window in new tab with javascript without changing browser settings

Below is the piece of code i ave written.. bt for that i need to change IE settings to "internet explorer decide how pop-ups should be open"

function open_in_new_tab(url)
{   
window.open(url,'_blank');
}
javac
  • 25
  • 10

2 Answers2

2

I think it's not possible to open a window in a new tab instead of a new window without changing browser settings.

Gilles V.
  • 1,412
  • 13
  • 20
0
function open_in_new_tab(url )
{
  var win=window.open(url, '_blank');
  win.focus();
}

Open a URL in a new tab (and not a new window) using JavaScript

Community
  • 1
  • 1
Prashobh
  • 9,216
  • 15
  • 61
  • 91