Breaking News
yeni film izle hd film seyret film izle

Onresize event In Java Script

This event gets fired when resizes the web page window. A web page window can be resized, an onresize event gets fired when a web page window is resized, to which we can program accordingly.
 
Example:
 
<html>

<head>

<title>events </title>

</head>

<body bgcolor=blue text=”white” onresize=”pp()”>

<marquee direction=up behavior=alternate>

These pages are Developed by Vishwajit Vatsa.

</marquee>

<h1>

<marquee direction=right behavior=alternate>

These pages are Developed by Sandeep Singh Bhandari.

</marquee>

</h1>

<h1>

If you minimize or maximize this page onresize event will be fired.

</h1>

<script>

function pp()

{

var a=confirm(“Really want to resize”) if (a)

{

document.bgColor=’red’

}

else

{

document.bgColor=’green’

}

}

</script>

</body>

</html>

Check Also

Functions Returning Values In Java Script

Function is a set of statements recognized by a name and can be used as …