Search code examples
javascriptfirefoxbookmarks

add bookmark in Firefox without any dialog box


Using JavaScript, is it possible to add a bookmark in Firefox directly, without opening any dialog box? That is, I want the user clic on a link and that the bookmark is automatically created, without the need to any further step.


Solution

  • Fortunately, no. It would be a horrible breach of security.

    Could be a different story in the context of a Firefox Extension, but I assume you are asking for a normal web page.