Please enable JavaScript
window.onload or action attribute in apex:page can be used as OnLoad function in Salesforce Visualforce page. Blog Post: https://www.infallibletechie.com/2012/05/onload-function-in-visualforce.html