I need to display an external hosted iframe on a client's website and adjust the background color of the body element. Here is what I have tried:
<script type="text/javascript">
function changeBackgroundColor(){
top.frames['bookings'].document.body.style.backgroundColor = "black";
}
</script>
<iframe src="http://www.booking.com/?aid=123456&tmpl=searchbox&ss=&width=250
&bgcolor=000000&textcolor=FFFFFF&label=label" width="250px" style="margin-left:20px;border:none;"
height="250px" frameborder="none" scrolling="no" style="background-color:black;" name="bookings"
onload="javascript:changeBackgroundColor();">
</iframe>
Unfortunately, this code does not work as expected. I have also experimented with other approaches, but I am unable to use external libraries or stylesheets. Can anyone provide assistance?