Jump to content

Hyperlink in anchor tag always open in IE


toreachdeepak
 Share

Recommended Posts

Hi,I have a web site which works only in IE. I am using the hyperlink of the same web site in my website.Now I open my website in Firefox, the link to the website if clicked will open in Firefox which it doesn't support.Can I set my hyperlink in the anchor tag to always open in Internet Explorer ?RegardsDeepak Bhatia

Link to comment
Share on other sites

If you are asking how to create a link that will only open within a select browser, you cannot do that.Which ever browser you are using to view the web, will be the one to open all web links. I would suggest working on why your website does not work correctly with other browsers. If it is simply not display correcting, then you will need to look at your style sheets and consider making different style sheets that will allow your website to be viewed correctly across all browsers.

Link to comment
Share on other sites

Note this will involve having two links, one wouking link for IE, another non working link for rest.if it is one link, you could use

<body><!--[if IE]> <a href="http://google.co.uk">google website</a> <![endif]--> <![if !IE]> <a href="java script:void(0);">google website</a> <![endif]><body>

if several links you could use css

<style type="text/css">.iebrowser {display:none;}.non_iebrowser { display:inline;}</style><!--[if IE]><style type="text/css">.iebrowser { display:inline;}.non_iebrowser {display:none;}</style><![endif]-->

<body><a class="iebrowser" href="http://google.co.uk/">google website</a><a class="non_iebrowser" href="java script:void(0);">google website</a><p></p><a class="iebrowser" href="http://uk.yahoo.com/">uk.yahoo.com</a> <a class="non_iebrowser" href="java script:void(0);">For IE browsers Only</a></body>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...