...

View Full Version : Check if someone click on link



Fiedler777
11-29-2010, 07:26 AM
Is there any way to find if someone has click a link or opened it in a new tab to enable a button??

Fumigator
11-29-2010, 07:50 AM
You can attach Javascript to a link to either submit the page (and therefore you'd know if the link was clicked) or send an Ajax request to log the click.

Fiedler777
11-29-2010, 03:25 PM
Here's an example of what I want
I have a website that I want people to vote for before they go to the main website. Is there a way to make a code to check if the link was click or right clicked open in new tab. Then a button like a linked button to the main site. The button will become enabled when they click the link

Fumigator
11-29-2010, 07:27 PM
Yes, as I mentioned, you can attach actions to onclick events via Javascript.

Fiedler777
11-29-2010, 11:40 PM
Yes, as I mentioned, you can attach actions to onclick events via Javascript.

How would I do that

MattF
11-30-2010, 09:25 PM
http://w3schools.com/js/default.asp



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum