Jump to content

Hyperlink in anchor tag always open in IE


toreachdeepak

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...