I want to know if there is a way to check if a link is univisted javascript or jquery should display a popup mesage to the user to visit that link. This should happen as soon as a user logins the website. Any help in this regard will be appreciated.

Recommended Answers

All 2 Replies

Member Avatar for diafol

Why would you want to do that? Popup messages are annoying in the extreme. Anyway, you could store previously used links with cookies or you could log visited pages with back-end storage like a DB.

However, if you just need something like the a:active in CSS, you could style it anyway you want.

Stupid question: Why don't you just redirect them to the desired page?

You could use cookies to track if the user visited the page, or use a database field to flag if they have.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.