Trigger Action automatically when page loads

Hi, I want to trigger an action upon a page loads, but I can't find a method that triggers a button click, is there any way?
Was this page helpful?