Apr 16, 2024 1 min read javascript how to trigger events when the document loads in js how to trigger events when the document loads in js