Link to home
Start Free TrialLog in
Avatar of pamwestphal
pamwestphal

asked on

Can you set background color in window.open?

Is it possible to do something like this from code behind?:

Response.Write("<script>mywindow = window.open('" + script + "'); myWindow.document.bgColor='" + color1 + "'</script>")

When I open an excel spreadsheet, it takes awhile and the background is transparent initially. It looks odd. Thank you for any ideas you might have.

ASKER CERTIFIED SOLUTION
Avatar of Rikin Shah
Rikin Shah
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do you mean you're opening an Excel sheet on window.open doc? If yes then have it on the DIV with an initial back color.