toreachdeepak Posted May 4, 2011 Share Posted May 4, 2011 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 More sharing options...
rubykitten Posted May 4, 2011 Share Posted May 4, 2011 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 More sharing options...
dsonesuk Posted May 4, 2011 Share Posted May 4, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.