HTML Event attribute: onpageshow
[this page | pdf | back links]
The HTML onpageshow attribute specifies the event
that is triggered when the user navigates to a page. It applies to <body> elements.
EXAMPLE:
HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body onpageshow="return myOnpageshow()">
onpageshow:<br><br>
<script>
function myOnpageshow() {alert("Page being shown");}
</script>
</body>
</html>
|
NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes