rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<style type="text/css">
body
{
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
position: absolute;
padding: 0;
width: 100%;
height: 100%;
}
.bgDiv
{
left: 0px;
top: 0px;
height: 100%;
width: 100%;
margin-left: 0px;
margin-top: 0px;
position: absolute;
background-color: #FF0000;
}
.flashContainer
{
left: 0px;
top: 0px;
height: 90%;
width: 90%;
margin-left: 0px;
margin-top: 0px;
position: absolute;
background-color: #0000FF;
}
</style>
<script language="JavaScript">
function checkSize()
{
var flashContainer = document.getElementById('flashContainer');
var w = document.body.offsetWidth;
var h = document.body.offsetHeight;
alert(document.body.bgDiv.width);
}
</script>
<body onresize="checkSize();">
<div class="bgDiv"><div class="flashContainer"></div></div>
</body>
</html>