Edit This Code:
See Result »
<
!DOCTYPE
html
>
<
html
>
<
body
onload
="myFunction()"
>
<
h1
>
Hello World!
<
/h1
>
<
script
>
function
myFunction() {
alert(
"Page is loaded"
);
}
<
/script
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <body onload="myFunction()"> <h1>Hello World!</h1> <script> function myFunction() { alert("Page is loaded"); } </script> </body> </html>
Result:
Privacy Policy