Is it possible to detect when a page is bookmarked within the browser, using Javascript?
No, AFAIK this is not possible.
Most browsers will not let you detect when a page is bookmarked because this would be another vector for Browser History Mining exploits.
If malicious code could tell what websites you've used then, for example:
It is for this reason that the HTML spec has long required that:
The actual (history) entries are not accessible from script.
It follows that bookmarks are an even more lasting form of history, so they would not be allowed either.
Indeed whenever side-channel history-mining exploits (like the CSS :visited
vulnerability) became known, the appropriate specs are adjusted and security-conscious browsers move to block the privacy hole.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With