by default, div.onresize is not working on FireFox.
so, I add listener as following:

Code:
<script type="text/javascript">
window.onload = addListener;

function addListener()
{
	var n = document.getElementById("outside");
	if(n.addEventListener)
	{
		n.addEventListener("resize", resizeDiv, false); 
	}
	else
	if(n.attachEvent)
	{
		n.attachEvent("onresize", resizeDiv); 
	}
}

function resizeDiv()
{
	alert("PPPPPPPPPPPPPP");
}
</script>

<style>
#outside
{
	width:			100%;
	height:			100%;
	border:			2px solid #008800;
	background:		#AA00AA;
}
</style>

<div id="outside" onresize='resizeDiv();'>
</div>
But, onresize event is not added to the div as I tested on FireFox.

Is something wrong above?


Thanks.

.