Loading a function when a hyperlink is clicked
Posted on 2003-11-14
I am having problems loading a function (logs the users visit to a page) when a user clicks on a hyperlink. Here is the code I am using:
<a href="Some URL" target="_blank" onclick="<CFOUTPUT>#traffic("This is the title of the page","This is the URL of the page")#</CFOUTPUT>">My Link</a>
I have four more identical links and a few regular links. The problem I am having is when any link is clicked (even the regular ones) the above code executes for every link, even though it was not the one being clicked.
Any help with this would be appreciated.