![]() |
Definition and UsageThe Applies toThe
Browser Support |
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 onresize attribute |
How to Execute a JavaScript when the browser window is resized - HTML onresize Attribute | HTML Attribute |
Read Full: | HTML Attribute |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded by: | Admin |
Views: | 29 |
Reffered: https://www.w3schools.com/tags/att_onresize.asp