|
Definition and UsageThe onresize attribute fires when the browser window is resized |
<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
<!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 |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Window Event Attributes |
Uploaded by: | Admin |
Read Articlehttps://develop.horje.com/learn/1434/reference