tags:

views:

53

answers:

1

Hey SO, is there anyway I can use HtmlPage.Window.Navigate(new Uri(link), "_blank"); to open a URI in a new tab (not new window!) which is in the same instance of Internet Explorer.

Currently using SL3 and it seems that whether its a new tab vs. new window is based on browser options...

Any help? Thanks.

+2  A: 

You're doing it properly by using "_blank". What that does is opens a new page in either a new tab or window depending on the user's settings:

If you want to use a "hack" to get around this use this link as a resource. It basically states that until a browser supports CSS3 you'll have to use a "hack" as a workaround:

  • Internet Explorer -- IWebBrowser2::Navigate2 (use 0x1000 as the second parameter). Note: you have to have FULL TRUST MODE for this to work.
myermian
Yeah, that's what I was afraid of... thanks anyway.
JGord
Also, how do get access to that interface? I don't know how to call that method... thanks!
JGord