View Single Post
  #2 (permalink)  
Old April 1st, 2010, 10:30 AM
PeterPeiGuo PeterPeiGuo is offline
Friend of Wrox
 
Join Date: Dec 2008
Location: , , .
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

bgcolor should be spelled as bgColor with captial C:
Code:
<html>
<script type="text/javascript">
//this file will paint exp.htm when that file is opened.

document.write("this is paintParent.htm");
window.opener.document.bgColor = "RED";

</script>
</html>
Reply With Quote