Javascript examples for DOM Event:onpageshow
The onpageshow event occurs when a user navigates to a webpage.
Bubbles | No |
---|---|
Cancelable | No |
Supported HTML tags: | <body> |
<!DOCTYPE html> <html> <body onpageshow="myFunction()"> <h1 id="demo"></h1> <script> function myFunction() {//from w w w. j ava 2s.c om document.getElementById("demo").innerHTML = "Welcome To My Homepage!"; } </script> </body> </html>