Using Initialize Event
The above sample showcases how to listen to Initialize event using JavaScript. Click here to know more on how the code of this example works.