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.
More Related Contents:
- What happens to code after a javascript redirect (setting window.location.href)?
- Why are regular expressions taking the helm in my JavaScript, and how do I insist “this is a string”? [closed]
- ‘innerText’ works in IE, but not in Firefox
- Is it possible to display a custom message in the beforeunload popup?
- Jquery load() only working in firefox?
- new Date() is working in Chrome but not Firefox
- How can I set default homepage in FF and Chrome via javascript?
- Cryptic “Script Error.” reported in Javascript in Chrome and Firefox
- Breakpoint on property change
- How can I prevent the backspace key from navigating back?
- How to getting browser current locale preference using javascript?
- JavaScript Time Zone is wrong for past Daylight Saving Time transition rules
- Cross-browser bookmark/add to favorites JavaScript [duplicate]
- document.body.scrollTop Firefox returns 0 : ONLY JS
- Open IE browser in Firefox/Chrome page
- How can I make window.showmodaldialog work in chrome 37?
- Animated gif only loops once in Chrome and Firefox
- Chrome – Fetch API cannot load file. How to workaround?
- Why is a function declaration within a condition block hoisted to function scope in Chrome but not Firefox?
- Function as Google Chrome bookmark
- Proper way to detect WebGL support?
- Get cursor or text position in pixels for input element
- Why are function declarations handled differently in different browsers?
- How to get result of console.trace() as string in javascript with chrome or firefox?
- “google is not defined” when using Google Maps V3 in Firefox remotely
- Silence net::ERR_CONNECTION_REFUSED
- How to detect if user has enabled full screen in browser
- How to use “segments” mode at SourceBuffer of MediaSource to render same result at Chomium, Chorme and Firefox?
- chrome Pop-up blocker when to re-check after allowing page
- Chrome won’t play WebAudio getUserMedia via WebRTC/Peer.js