Add to browser favorites/bookmarks from JavaScript but for all browsers (mine doesn't work in Chrome)?

前端 未结 6 1780
时光取名叫无心
时光取名叫无心 2020-11-28 09:38

Can anyone help, I am using the following for adding a bookmark to IE and Firefox but its not working in Chrome and I don\'t get my error msg saying \"not supported\" either

6条回答
  •  旧时难觅i
    2020-11-28 09:54

    Sorry, but there's no cross-browser way to do this. Your FF example is broken as well: It won't create a regular bookmark, but a bookmark set to be opened in the sidebar. You'd have to use the bookmark-service to create an actual bookmark, but this'll fail due to security restrictions.

提交回复
热议问题