4 Replies - 4960 Views - Last Post: 31 August 2011 - 07:54 AM

#1 mani214  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 29-August 11

Opening a new window instead of new tab in IE8

Posted 29 August 2011 - 08:46 PM

d='javascript:if(document.getElementsByTagName("*").length>0&&document.getElementsByTagName("body")[0].innerHTML!=""&&!confirm("You are about to navigate to home page Do you want to do that ? ")){opener.display2WindowHelp();}else{window.location.replace("${pageContext.request.scheme}://>/${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}'+d+'");}';

b= window.open(d,"_spor_window_"+a+window.location.hostname.replace(/\./g,""),"menubar=no,scrollbars=yes,height="+screen.availHeight+",width="+screen.availWidth+",left=0,top=0,resizable=yes,toolbar=no,location=no,status=no");


I wrote the above code to open a new window from home window . but its opening a new tab in IE8 . Is there a way to modify this to open a new window instead of new tab in IE8

Is This A Good Question/Topic? 0
  • +

Replies To: Opening a new window instead of new tab in IE8

#2 codeprada  Icon User is offline

  • Changed Man With Different Priorities
  • member icon

Reputation: 948
  • View blog
  • Posts: 2,357
  • Joined: 15-February 11

Re: Opening a new window instead of new tab in IE8

Posted 30 August 2011 - 05:06 AM

I'm afraid not. That's a feature of the browser. Go to Options > Internet Options > General > Tabs and you should see your settings there.
Was This Post Helpful? 0
  • +
  • -

#3 X-spert  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 56
  • Joined: 25-August 11

Re: Opening a new window instead of new tab in IE8

Posted 30 August 2011 - 06:47 AM

Hi,

Try this:
window.open(url, windowName, "height=xxx, width=xxx");

Was This Post Helpful? 0
  • +
  • -

#4 mani214  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 29-August 11

Re: Opening a new window instead of new tab in IE8

Posted 30 August 2011 - 08:43 AM

View Postcodeprada, on 30 August 2011 - 05:06 AM, said:

I'm afraid not. That's a feature of the browser. Go to Options > Internet Options > General > Tabs and you should see your settings there.


I agree but a different code is opening a new browser window but this is not able to do that .. i think i can modify my code to do so ...thanks
Was This Post Helpful? 0
  • +
  • -

#5 mani214  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 29-August 11

Re: Opening a new window instead of new tab in IE8

Posted 31 August 2011 - 07:54 AM

View PostX-spert, on 30 August 2011 - 06:47 AM, said:

Hi,

Try this:
window.open(url, windowName, "height=xxx, width=xxx");



thanks buddy but that what i tried ....the only problem here is creating the url and assigning to the variable i guess i am doing something wrong there ....
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1