How to check the visited link using jquery without using any plugin, please help solve this problem.
Just check if it has a property :visited
:visited
if ($("a#theLink:visited").length) { //anchor tag with id of "theLink" has been visited }
Strike>
edit : Remy Sharp created a jquery plugin to help locate visited links.
edit2 . This seems like a security issue. mozilla is now fixed, http://hacks.mozilla.org/2010/03/privacy-related-changes-coming-to-css-vistited/
Remy Sharp jQuery , "getComputedStyle", false mozilla, : http://hacks.mozilla.org/2010/03/privacy-related-changes-coming-to-css-vistited/
Source: https://habr.com/ru/post/1717409/More articles:JQuery plugin to display "loading" awaiting AJAX response - jquerya couple of questions about OO and PHP classes - oopBamboo integration - bambooSearch string parsing (in NHibernate criteria) - searchCritical Criteria at NHibernate - nhibernateShortcut to go to java stack trace console - eclipseThe optimal solution for non-overlapping maximum scoring sequences - setHow to remove 1 version of a folder in Subversion - svninverse ratio of kernel data - core-dataAlgorithm for returning the maximum possible sum of subsequences in a sequence - c ++All Articles