views:

64

answers:

1
..some code here ...

<iframe id="iView" frameborder="0" style="position: relative; z-index: 1500; left: 387px; top: 90px; width: 185px; height: 180px;" name="iView" src="">
<html>
<head>
</head>
<body style="background-color: rgb(0, 204, 204);"> CONTENT </body>
</html>
</iframe>

..some code here ...

i can get the CONTENT with this:

iframe_window.document.getElementsByTagName("body")[0].innerHTML;

anybody know how to get the background color ? i need to get this: rgb(0, 204, 204)

thank you

A: 

What about

iframe_window.document.getElementsByTagName("body")[0].style.backgroundColor

backgroundColor

rahul
Is this incorrect?
rahul