Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
165
rated 0 times [  171] [ 6]  / answers: 1 / hits: 37374  / 15 Years ago, wed, july 8, 2009, 12:00:00

I have a href link and I would like it to be clicked when the page is loaded.


More From » jquery

 Answers
41
$(document).ready(function() {
$('#someLinkId').click();
});


Or



$(document).ready(function() {
$('#someLinkId').trigger(click);
});

[#99168] Friday, July 3, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alora

Total Points: 284
Total Questions: 99
Total Answers: 92

Location: Singapore
Member since Sat, Jul 25, 2020
4 Years ago
;