how to use window onload function in typescript

Specifies the width of the content area, including scrollbars. The onload property processes load events after the element has finished loading. The Window interface's open() method takes a URL as a parameter, and loads the resource it identifies into a new or existing tab or window. In the above HTML page source, you can see the