# Change document backround color

**URL:** <https://forum.kirupa.com/t/change-document-backround-color/218391>\
**Category:** Uncategorized\
**Created:** [March 7, 2007, 1:14pm UTC](https://forum.kirupa.com/t/change-document-backround-color/218391 "2007-03-07T13:14:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trex2001](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@Trex2001](https://forum.kirupa.com/u/Trex2001)\
**Post date:** [March 7, 2007, 1:14pm UTC](https://forum.kirupa.com/t/change-document-backround-color/218391/1 "2007-03-07T13:14:09Z")

</div>

hey everybody,

have a minor AS/JavaScript problem here…

what i have is a button loading an image in a new window using this code:

```auto
b1.onRelease = function(){
	getURL("javascript:window.open('images/wallpapers/rocks.jpg');void(0);");
}

```

what do i need to add to set the new window’s backround color to black???
