I am not guessing.
I am reading the following book:
By Paul Wilton and Jeremy McPeak.
Page 285, Chapter 8.
"If you wanted to change the background color of the document contained inside the new window, you would type this."
newWindow.document.bgColor = "red";
I am trying to add a background color to a pop up window when a user click okay on the prompt box.
Here is the code, the background color changes in IE for the pop up window but not in FF.
var message = prompt("Who is your favorite Hollywood Star? ", "");
if (message == "")
message = "Come on! That was an easy question. You should have answered it.";
myWindow = window.open('','','width=800,height=600');
Maybe I misunderstood, not sure.
Thanks for pointing this out!
So why would this be in the book?