File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to make a URL should always open using Firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to make a URL should always open using Firefox" Watch "How to make a URL should always open using Firefox" New topic
Author

How to make a URL should always open using Firefox

Vijay Gadde
Ranch Hand

Joined: Sep 30, 2008
Posts: 54
Hi Ranchers, may be I look silly to you..but this is actual requirement.

We have intranet website in our company, and it has Hyperlink for peoplesoft - and this peoplesoft application support only Firefox.

Users always use IE6 to browse intranet webiste, but when users select this PEOPLESOFT Hyperlink it should open new window - using Firefox .

Could some one give a idea on this, one option i been searching for code - using Java script we could control this - but how??

Any suggestions or code snippets would be great help.

Thanks and regards,VIJAY.


Vijay Gadde
Coming together is a beginning. Keeping together is progress.. Working together is success........
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
No, you can't control this - it's a setting under the control of the user. What you can do is detect if a non-Firefox browser is used, and in case it is -instead of the link- show a message to the effect of "you need to be using Firefox to proceed".
jhon masco
Ranch Hand

Joined: May 13, 2010
Posts: 93
Hi Vijay
Sorry for the delay.
1) I think that you must put a small comment beside the link or something similar explaining about this to the user.

2) Or just show the link when the user open the page with firefox

3) use try this code but.... what happend if the user have not installed firefox?
I modified and tried it and i wont be able to run Firefox in my pc.


or this

MOre theory information here
I personally dont like the third option
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to make a URL should always open using Firefox
 
Similar Threads
Reduce Excel XML file size
Problem in opening PDF or FDF in Firefox?
how to use function javascript key word as an attribute in javascript
open a heper link in a new window using trinidad tags
re:How to use hyperlink in applet