HTML onpageshow event Attribute

❮ HTML Event Attributes

Example

<body onpageshow="myFunction()">

Meaning

The onpageshow attribute fires when a suspended page is shown again.


Standard Syntax

<element onpageshow="script">

Browser Support




Status







Attribute Values

Value Description
script Specifies the script to be run on onpageshow



Technical Details

Supported HTML elements:

<body>
❮ HTML Event Attributes