Use jQuery to Select Visited Links

前端 未结 3 985
一个人的身影
一个人的身影 2020-11-27 22:34

I\'m trying to select all visited links via jQuery. Here is the HTML


      
3条回答
  •  醉话见心
    2020-11-27 23:34

    The given approach has been disabled for security reasons.

    As it is possible to retrieve a visitor's history by checking for visited links, certain measures have been taken by browser vendors to prevent this.

    Source: Mozilla Foundation Blog.

    Checked in Chrome and FF - both don't support $("a:visited") any longer.

提交回复
热议问题