Jump to content
toreachdeepak

Hyperlink in anchor tag always open in IE

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

Share this post


Link to post
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.

Share this post


Link to post
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>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...