Welcome to WebmasterWorld Guest from 34.204.194.190

Forum Moderators: open

Message Too Old, No Replies

IE 7 or MSN Toolbar tabbed browsing question

     
6:58 am on Nov 11, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 15, 2003
posts:1418
votes: 0


I'm hoping this is an easy one, but I haven't been able to find a clear answer. How do you create a hyperlink that opens a new tab in IE7 or IE6 with the MSN Toolbar (gives IE6 the IE7-style tabbed browsing)?
7:17 am on Nov 11, 2005 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts:3178
votes: 22


Your anchor will open in a new tab/window by using the anchor element, attribute and value <a target="_blank"> in HTML 4. There is no way to control whether a new page opens in a new tab or new window.
7:22 am on Nov 11, 2005 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:15160
votes: 170


Keep in mind that the target attribute is depreciated in the Strict versions of HTML 4 and XHTML. Be wary of opening links in new windows. It's not very user friendly.
7:31 am on Nov 11, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 15, 2003
posts:1418
votes: 0


This is for an intranet, so it's actually very user friendly to open links into new tabs so the employee isn't taken away from the Intranet site and doesn't have ot have multiple browsers open.

There has to be a way to do this. "target=" can open a new window, not a new tab.

7:54 am on Nov 11, 2005 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:15160
votes: 170


An Intranet gives you a bit more leeway. ;)
How tabs open is a function of the browser's settings. Individuals can set new links to open in new windows or new tabs in the browser configuration. Given this it might be pretty complicated to force a new tab.
8:34 am on Nov 11, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 15, 2003
posts:1418
votes: 0


Yeah, I was hoping for something similar to "target=_new" but that still opens a new window. Seems kind of strange that Microsoft wouldn't put such a simple function in there like target=_newtab or something.
9:06 am on Nov 11, 2005 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:15160
votes: 170


I'm very glad they didn't. They make up enough HTML and CSS that goes against W3C standards. The last thing we need is more proprietary code that only works on one browser.

Regardless, Windows and Tabs are really the same thing as far as the browser is concerned. How do you get new tabs to open? If your visitors want to open things in a new window then that's their browser preference. If this is a company Intranet then you could make a browser policy to set all new windows to open in tabs.

3:22 pm on Nov 11, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 15, 2003
posts:1418
votes: 0


Look, I'm not interested in all of the 'moral reasons' for not doing this, ok? This is an intranet - I want proprietary code here, I don't care about the W3C and any of that other hippie crap.

I need to make links off of the Intranet site open in new tabs. Not reconfigure browsers so all links work this way, not make users right click and choose to open them this way, and not listen to lectures from those who think this shouldn't be done.

5:48 pm on Nov 11, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 23, 2005
posts:742
votes: 0


Microsoft has stated that they want to be more compliant with w3c standards. Microsoft is a member of the w3c board. Microsoft has just partnered with WASP which is a supporter of the w3c. Microsoft, I guess, makes 'hippy crap'. So, in the future, the code you are writing won't work in IE6/7.
6:12 pm on Nov 11, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 15, 2003
posts:1418
votes: 0


W3C standards have nothing to do with a designer's ability to specify a hyperlink going to a "new tab" instead of a "new window". What's the difference? Why are we given the option to do one but not the other? If browsing is moving to tabs instead of separate windows, logically the browser makers would give designers the ability to specify a hyperlink to new tab like we presently can to new window. Firefox does.

Apparently there is a method to do this built in, msntabf:// (for new foreground tab) and msntabb:// (for new background tab) but there is zero documentation out there on it, and I've tried every possible way I can think of to try and get a new tab to open with a link. Nothing works.

6:16 pm on Nov 11, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


I need to make links off of the Intranet site open in new tabs. Not reconfigure browsers so all links work this way, not make users right click and choose to open them this way, and not listen to lectures from those who think this shouldn't be done.

Well, first, this is a public conversation that will be referenced by many other people for a long time -- so the discussion of all the attending issues is well needed in my opinion, whether all of it applies to any one particular situation or not.

And second, you are getting correct input to the bestr of my knowledge -- there is no code, standard or proprietary, that will force a new browser tab rather than a new window window. It is a client setting, not somethin that can be determined from the server.

6:23 pm on Nov 11, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 15, 2003
posts:1418
votes: 0


I did find this ... problem is, it doesn't work. At least not in IE6 with the MSN Toolbar. Maybe it works in IE7? When I make a link as the instructions say I get a Javascript error and nothing else happens.

---

msntabb and msntabf codes
Here are replacements for the Open in new tab context menus
<html>
<head>
<script language='javascript'>
// OpenFTab.htm
// Open the Link or Image in a new tab. Requires MSN Tabs Toolbar
var URL = external.menuArguments.event.srcElement.href;
if( URL.substring( 0,5 ) == "http:"
URL.substring( 0,6 ) == "https:"
URL.substring( 0,4 ) == "ftp:"
URL == "about:blank"
URL == "about:home"
URL == "about:mozilla" )
{
URL = "msntabf://c3e540ff3ea34d0da22e74335112917" + URL;
external.menuArguments.document.location.href = URL;
}
else
external.menuArguments.event.srcElement.click();
</script>
</head>
</html>
=================================================
<html>
<head>
<script language='javascript'>
// OpenBTab.htm
// Open the Link or Image in a new Background tab. Requires MSN Tabs Toolbar
var URL = external.menuArguments.event.srcElement.href;
if( URL.substring( 0,5 ) == "http:"
URL.substring( 0,6 ) == "https:"
URL.substring( 0,4 ) == "ftp:"
URL == "about:blank"
URL == "about:home"
URL == "about:mozilla" )
{
URL = "msntabb://c3e540ff3ea34d0da22e74335112917" + URL;
external.menuArguments.document.location.href = URL;
}
else
external.menuArguments.event.srcElement.click();
</script>
</head>
</html>
===============================================
To convert an existing link to an open in new tab link
ie. [iecustomizer.com...]
becomes
msntabf://c3e540ff3ea34d0da22e74335112917http://www.iecustomizer.com/

Warning - you need to have the tabs active before launching the modified link otherwise IE will spit the dummy.

The existing context menus for MSNSearch are only for Hyperlinks. You can modify the contexts value in the registry to hex 22 to include images
under this key
HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMenuExtOpen in new foreground tab

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members