94
rated 0 times
[
101]
[
7]
/ answers: 1 / hits: 27299
/ 16 Years ago, mon, march 2, 2009, 12:00:00
Is there an easy way to have JavaScript mimic a User clicking an anchor tag on a page? That means the Referrer Url needs to be set. Just setting the document.location.href doesn't set the Referrer Url.
<script>
$(document).ready(function () {
$(a).click();
});
</script>
<a href=http://example.com>Go here</a>
This doesn't work because there isn't a Click() event setup for the link.
More From » jquery