Rasi
answered Sep 24 '21 00:00
you cant use window.load(function(){}) because there is no window.load function is there in javascript but use following code for window.onload event
window.onload = (event) => {
//put here code
}
when the window completes the load then window.onload event trigger.