![]() |
Definition and UsageThe onresize attribute fires when the browser window is resized |
Example:
HTML
<body onresize="myFunction()">
< element onresize=" script ">
Value | Description |
---|---|
script | The script to be run on onresize |
Supported HTML tags:
Here tries to resize the browser window
Example:
HTML
<!DOCTYPE html>
<html>
<body onresize="myFunction()">
<p>Try to resize the browser window.</p>
<script>
function myFunction() { alert("You have changed the size of the browser window!");
}
</script>
</body>
</html>
html event attributes |
HTML onafterprint Event Attribute | HTML Window Event Attributes |
HTML onbeforeprint Event Attribute | HTML Window Event Attributes |
HTML onbeforeunload Event Attribute | HTML Window Event Attributes |
HTML onerror Event Attribute | HTML Window Event Attributes |
HTML onhashchange Event Attribute | HTML Window Event Attributes |
HTML onload Event Attribute | HTML Window Event Attributes |
HTML onoffline Event Attribute | HTML Window Event Attributes |
HTML ononline Event Attribute | HTML Window Event Attributes |
HTML onpageshow Event Attribute | HTML Window Event Attributes |
HTML onresize Event Attribute | HTML Window Event Attributes |
HTML onunload Event Attribute | HTML Window Event Attributes |
Example of HTML onresize Event Attribute | HTML Window Event Attributes |
Browser Support of HTML onresize Event Attribute | HTML Window Event Attributes |
Syntax of HTML onresize Event Attribute | HTML Window Event Attributes |
Attribute Values of HTML onresize Event Attribute | HTML Window Event Attributes |
Technical Details of HTML onresize Event Attribute | HTML Window Event Attributes |
How to execute a JavaScript when the browser window is resized | HTML Window Event Attributes |
Type
: |
Develop |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Window Event Attributes |
Uploaded by
: |
Admin |
Read Article https://horje.com/learn/1434/reference