Hey I was testing this code. The alert displays the result in IE but not in Firefox:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Get computed border width</title>
<script type="text/javascript" src="http://o.aolcdn.com/dojo/1.3.2/dojo/dojo.xd.js" djConfig="useXDomain:true">
</script>
<script>
function doOnLoad(){
var o = dojo.byId("myDiv");
alert(dojo.getComputedStyle(o).borderWidth);
}
</script>
</head>
<body onLoad="doOnLoad();">
<div style="border-width:10px" id="myDiv">
I am myDiv
</div>
</body>
</html>
What is the reason why the alert is not diplaying in FF?