js similar jquery document ready code example Example: js similar jquery document ready window.addEventListener('load', () => { aler("Page is loaded") })