Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <script src="https://code.jquery.com/jquery-3.5.0.min.js"> </script> </head> <body> <h1>Welcome to W3Docs</h1> <script> function loadFunction() { alert("Window is loaded"); } window.onload = loadFunction(); </script> </body> </html>