Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Handling the Load Event</title> </head> <body onload="window.alert('Page is loaded successfully!');"> <h1>This is a heading</h1> <p>This is paragraph of text.</p> </body> </html>