• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 481
  • Last Modified:

Javascript that opens a URL in firefox

I am trying to open a url in firefox from a hyperlink - the base code for the browser we are using is I.E.
While in this "basic" browser i need a hyperlink to open firefox and go to that URL - can anyone help
0
r3nder
Asked:
r3nder
  • 5
  • 5
1 Solution
 
edemcsCommented:
I don't think you'll be able to do that because of security reasons.  Why are you trying to open FireFox?  Is it for style/script support?
0
 
r3nderAuthor Commented:
The customer built the websites that we need to go to and they have stated that it does not work well in IE just firefox.
0
 
edemcsCommented:
Unfortunately, I suspect that this could be a futile task.  Your only real solution is to advise the user before going to the link that they should use FireFox and possibly give them a copy option for the URL that they can paste into the FireFox browser.  Anything else would require some sort of application that the user grants rights to so that you could execute their applications from your site.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
edemcsCommented:
Of course, you could ask the site owner to make it FF compliant.  Finally, if the styles aren't too bad and doesn't affect the functionality of the experience, you could just deal with it.
0
 
r3nderAuthor Commented:
nope - I wish I could but the customer is very exacting in there expectations and ideas
0
 
Michel PlungjanIT ExpertCommented:
You can register a protocol and assign that protocol to firefox

ffx://someserver.com/firefoxonly.html

http://kb.mozillazine.org/Register_protocol
0
 
edemcsCommented:
You'll have to do what mplungjan is stating on each client machine, though.
0
 
r3nderAuthor Commented:
I'll give it a shot -
0
 
r3nderAuthor Commented:
heres how I did it
1.I created 2 registry files
2.I created a FFXLauncher.exe and put it in C:\Windows\System32\
3.Apply both registry files (RegisterFFX.reg and RegisterFFXS.reg) (below in code)
4.Created a test FFXtest.html for examples of hyperlinks using ffx:// (same as http://) and ffxs:// (same as https://)
 
 FFXLauncher.exe FFXLauncher.exe
*****************************
1st file
REGEDIT4

[HKEY_CLASSES_ROOT\ffx]
@="URL:ffx Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\ffx\shell]

[HKEY_CLASSES_ROOT\ffx\shell\open]

[HKEY_CLASSES_ROOT\ffx\shell\open\command]
@="\"C:\\Windows\\System32\\FFXLauncher.exe\" \"%1\""
******************************
Second file
REGEDIT4

[HKEY_CLASSES_ROOT\ffxs]
@="URL:ffxs Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\ffxs\shell]

[HKEY_CLASSES_ROOT\ffxs\shell\open]

[HKEY_CLASSES_ROOT\ffxs\shell\open\command]
@="\"C:\\Windows\\System32\\FFXLauncher.exe\" \"%1\""
*****************************

Open in new window

FFXtest.html
RegisterFFX.reg
RegisterFFXS.reg
0
 
r3nderAuthor Commented:
Thanks!
0
 
edemcsCommented:
Thanks for sharing!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now