简体   繁体   中英

How to check the user enter a address URL on browser and click on a bookmark?

As title,

I want to get event when the user enter a URL on browser and the user click a URl on bookmark by javascript.

How to?

Thanks.

Not possible. Period.

Reason : Both do not generate referrers. If a link has been clicked from somewhere, it would be possible to determine using the document.referrer .

This same page, clicked from the list of questions in jQuery:

This same page, entered by copy paste or by bookmark:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM