![]() |
Definition and Usage
The Applies to
The
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 |
Type
: |
Develop |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Attribute |
Uploaded by
: |
Admin |
Read Article https://horje.com/learn/1434/reference