To open a web page in firefox by clicking an anchor tag

前端 未结 3 1080
别那么骄傲
别那么骄傲 2021-01-26 16:43

I am here to give u question. that is beyond exception but i think somebody will have answer for this.

Question: Once user clicks an anchor tag

相关标签:
3条回答
  • 2021-01-26 17:22

    If you mean exclusively in Firefox, it can't be done.

    Best you can do is hide it from other browsers by sniffing the user agent if the browser is not Firefox. But a different browser can easily present itself as Firefox (by spoofing the user agent).

    Either way, it is not a good idea. Why is Firefox required to view your page?

    0 讨论(0)
  • 2021-01-26 17:38

    Where is this anchor being displayed? In general, the link will be opened with the same program that is displaying the anchor. If not, it will launch whatever program is registered in the user's system to handle HTML files. You cannot force the user's system to use any specific browser (what happens if that browser isn't installed)?

    0 讨论(0)
  • 2021-01-26 17:39

    You cannot, from a given web-page, specify in which software a link should be opened.

    At best, if your anchor points to a specific kind of file (like a .doc), the system will know that it must use some other software than the browser (like MS Word -- or ask the user which software he wants to use). But, for an HTML page, the browser will be used.

    And your website has no control over this.

    0 讨论(0)
提交回复
热议问题