I have a href link and I would like it to be clicked when the page is loaded.
href
$(document).ready(function() { $('#someLinkId').click(); });
Or
$(document).ready(function() { $('#someLinkId').trigger("click"); });
2.1m questions
2.1m answers
60 comments
57.0k users