Event Handlers on Page Loaded

Event Handlers on Page Loaded

  
I'm a recent convert to OutSystems Platform and I was looking for a way of executing another Action independant of the Preparation Action after a web page had completely loaded similar to the JS function OnLoaded. Is there a concept of Event Handling so that I can execute another Action for this and other Event Types. In this case I want to wait until the Web Page has completely loaded before I do my other action?
Hi Andrew,

There is no "OnLoaded" System Event in Outsystems Platform, but if you wish to execute an action after the page is completed loaded, you can add a script to your page to trigger a hidden link that executes an Action (see the example at the end). You can try to use the Event System component too, maybe it can help you achieve what you need.

"<script type="text/javascript">
    window.onload = function () {
           $('#" + YourLinkButton.Id + "').click(); 
    }
</script>"