Open HREF link in FireFox from IE

Hi All,

All our employees use IE as their web browser.  We have a couple of legacy web applications that arent compatible.  As a work around we install an old version of FireFox, which can run the websites without issue.

I would like to place a link on our intranet (accessed in IE), which opens the browser in Firefox.

Can this be done?

All PC's are connected to the domain and I have admin rights to them.


many thanks
LVL 2
detox1978Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rainer JeschorCommented:
Hi,
this will normally not be possible from an intranet page.
Alternative solutions:
- Deploy / create short cuts on the desktop and name it like the web applications usage
- Use a HTA:
http://forums.asp.net/t/1652038.aspx?How+can+we+force+a+link+to+open+a+URL+in+a+different+browser+

Just my 2ct.
HTH
Rainer
0
Duy PhamFreelance IT ConsultantCommented:
I think your only option is using ActiveX from IE to enforce opening URL in Firefox (or another browser). For example
...
<a href="javascript: void(0);" onclick="shellOpen(this);" data-url="https://www.google.com">Search with Google</a>
...
<script>
function shellOpen(element) {
    var url = element.getAttribute('data-url');
    try {
        var sh = new ActiveXObject("WScript.Shell");
        if (sh) {
            sh.run("Firefox " + url);
        }
        else {
            window.open(url, '_blank');
        }
    }
    catch (e) { // ActiveX is not allowed, open in new window or tab
            window.open(url, '_blank');
    }
}
</script>

Open in new window


Please note that ActiveX normally requires user confirmation to proceed, so it might not be a good idea to enforce opening url in Firefox.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
F PCommented:
Yes, but only by creating  a Java web applet and having it launch the other browser. Set whether or not the app should load based on javascript which checks your current browser user agent string. Info on specifics:

http://www.tutorialspoint.com/servlets/servlets-quick-guide.htm
http://stackoverflow.com/questions/4688123/how-to-open-the-command-prompt-and-insert-commands-using-java
http://stackoverflow.com/questions/861784/how-to-call-a-web-service-from-jquery
0
detox1978Author Commented:
Sorry for the long delay.  Holidays etc...

We got it to work as you suggested, but needed to push out a GPO to add the URL to our Intranet Zone and pushed out the IE ActiveX setting "initialize and script activex controls not marked as safe" = Enabled (only for the Intranet Zone, I'm not crazy)

I didn't realise ActiveX was so easy to use or setup!  I can now execute any command on the users PC via the browser, so have added a load of script on the intranet for users to run via their browser.  e.g. remap network drives, ping test, telnet SMTP test, ipconfig/all etc... that write the results to notepad then open the file for them to read the results back.... :)


Many thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.