You understand the web is stateless, correct? When you are clicking on the link the specified resource, even if the same page, is loaded as if being visited for the first time. Unless told the browser has no way of know this is the first visit or the 15th. The CSS pseudo class
visited[
^] will tell if the link has been previously clicked. You can change the look of such links with CSS, you don't need to use JQuery.