Simulate Click after Page Completely Loads

jQuery, snippet,

If you work with a webpage that needs to simulate a click (eg. to open a popup, automatically submit a form, etc.) after page loaded, this one might be works for you.

[javascript]
jQuery(document).ready(function() {
setTimeout(function() {
jQuery(“section a.open-popup”).trigger(‘click’);
},10);
});
[/javascript]

Any idea? Fill the comment below

This site uses Akismet to reduce spam. Learn how your comment data is processed.