You can't directly control this, because it's an option controlled by Internet Explorer users.
Opening pages using Window.open with a different window name will open in a new browser window like a popup, OR open in a new tab, if the user configured the browser to do so.
Plz click Answer..if it suits your need
Marked as answer by mbanavige on Jan 29, 2013 02:16 AM
ganesh123.sh...
Member
38 Points
45 Posts
Open link in New Tab + Internet explorer
Dec 21, 2012 04:35 AM|LINK
Hi,
As per requirement from client we need to open perticuler link in New tab in Internet explorer
Please help me out to reslove this problem
following thing works in crome and mozila but not IE
window.open("http://www.google.com", '_newtab');
window.focus();
Naved Hasan ...
Participant
1005 Points
212 Posts
Re: Open link in New Tab + Internet explorer
Dec 21, 2012 05:33 AM|LINK
Answer is posted here. http://forums.asp.net/t/1342112.aspx/1
sameer_khanj...
Contributor
7060 Points
1378 Posts
Re: Open link in New Tab + Internet explorer
Dec 21, 2012 05:45 AM|LINK
window.open(URL,name,specs,replace)
Name :-
_blank - URL is loaded into a new window. This is default
_parent - URL is loaded into the parent frame
_self - URL replaces the current page
_top - URL replaces any framesets that may be loaded
refrence :- http://www.w3schools.com/jsref/met_win_open.asp
sameer.khanjit@gmail.com
View Blog
Click "Mark as Answer" on the post that helped you.
geniusvishal
Star
14214 Points
2803 Posts
Re: Open link in New Tab + Internet explorer
Dec 21, 2012 08:36 AM|LINK
U can use anchor tag of html as well like this:
<a href="http://www.google.com" target="_blank">Open Google in New Window</a>
Open Google in New Window
My Website
www.dotnetvishal.com
shrads
Member
58 Points
14 Posts
Re: Open link in New Tab + Internet explorer
Dec 21, 2012 08:42 AM|LINK
Hi,
There is a setting in IE through which the link opens in a new tab and not in a new window. Try that.
Thanks.
manjuby
Participant
1131 Points
251 Posts
Re: Open link in New Tab + Internet explorer
Dec 21, 2012 10:13 AM|LINK
You can't directly control this, because it's an option controlled by Internet Explorer users.
Opening pages using Window.open with a different window name will open in a new browser window like a popup, OR open in a new tab, if the user configured the browser to do so.
Chen Yu - MS...
All-Star
21584 Points
2493 Posts
Microsoft
Re: Open link in New Tab + Internet explorer
Dec 28, 2012 02:29 AM|LINK
Hi,
You could use Javascript to open a link in New Tab. Please check.
<form id="form1"><html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script> function open_win() { window.open("http://www.google.com", '_newtab'); window.focus(); } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="open_win()" /> </div> </form> </body> </html>http://www.w3schools.com/js/tryit.asp?filename=tryjs_openwindow
Thanks.
</form>Feedback to us
Develop and promote your apps in Windows Store
aspnetbarcod...
Member
14 Points
6 Posts
Re: Open link in New Tab + Internet explorer
Dec 28, 2012 02:52 AM|LINK
On my website, I used the codes below:
<a href="www.yourtargetlink" target="blank" title=xxxx>xxxx</a>
And when you click it, a new page will come out, it will not cover the exsiting page. :)
sameer_khanj...
Contributor
7060 Points
1378 Posts
Re: Open link in New Tab + Internet explorer
Dec 28, 2012 06:07 AM|LINK
As previously menthioned It all depends on how the IE browser is set up with link, you can not force browser to open a link in tab or on new Window.
Please view below URL for IE settings.
http://windows.microsoft.com/en-US/windows-vista/Internet-Explorer-browser-settings
sameer.khanjit@gmail.com
View Blog
Click "Mark as Answer" on the post that helped you.