cheap web hosting

IE7: What is the Code open window in a 'new tab'?

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 20 posts

Joined: Dec 2006

Are you using IE7?

I am looking the javascript for opening window targeted in 'new tab' instead of self or new window.

Marshtomp's picture

They have: 8 posts

Joined: Jul 2007

Tabbing is already possible in internet explorer (since Internet Explorer 7).
Check this link - http://www.microsoft.com/windows/ie/community/columns/tabbedbrowsing.mspx

Need custom web site design? web development services ?
Try the affordable services of our professional web design company.

JeevesBond's picture
Moderator

He has: 3,516 posts

Joined: Jun 2002

montyauto wrote: Are you using IE7?

Nope. Smiling

montyauto wrote: I am looking the javascript for opening window targeted in 'new tab' instead of self or new window.

That's interesting, I don't believe there's a way of doing that. The only way around this is to open a new browser window and hope the user has the 'Open new windows in tabs' setting enabled. This feature certainly exists in Opera/Firefox, not so sure about IE though. Have a look through the settings to find out.

Unfortunately I don't think there is a way to open a new window as a tab, unless the user has specified this in the settings/preferences. Sorry! Smiling

a Padded Cell our articles site!

Megan's picture
Administrator

She has: 10,126 posts

Joined: Jun 1999

And it's probably not a good idea to override the user's preferences anyway. Best to just go along with what their settings are - if they want a new tab, they'll get it. If they want a new window, they'll get that (although I'm sure most people don't know how to change those settings!)

The settings menus in Opera and IE 7 are kind of weird. Neither has a straight option to open new windows in tabs, unless that's what "Open windows instead of tabs" means in Opera. It looks like in IE you either have tabs enabled or you don't. You can only change the setting for pop-ups windows (not the same as new windows), or links from external programs.

Firefox does have a clear option asking whether new windows should be opened in a new tab or a new window.

pr0gr4mm3r's picture
ModeratorSponsor

He has: 633 posts

Joined: Sep 2006

Quote: This feature certainly exists in Opera/Firefox

Well then I'm sure IE will have it in future releases if they don't have it already. Smiling

I agree with Megan - best to let the user decide.

He has: 319 posts

Joined: May 2007

I suggest you don't even try. Pop-up blockers are so ubiquitous that many, including me, simply won't see your new window/tab.

What is a "new tab" or "new window" on an iPhone, anyway?

Cordially, David
--
"Old web developers don't die, they degrade gracefully..."