# \*\* HTML color change \*\*

**URL:** <https://forum.kirupa.com/t/html-color-change/92440>\
**Category:** Uncategorized\
**Created:** [October 17, 2003, 6:54am UTC](https://forum.kirupa.com/t/html-color-change/92440 "2003-10-17T06:54:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [October 17, 2003, 6:54am UTC](https://forum.kirupa.com/t/html-color-change/92440/1 "2003-10-17T06:54:43Z")

</div>

I have tried to use the script from this thread but have been unable to get it to work.  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12677&highlight=change+html+color](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12677&highlight=change+html+color)

I placed this between the \<head\> tags

```php

<SCRIPT LANGUAGE="JavaScript">
<!--
function changeColor(color){
document.bgColor = color;
}
-->
</SCRIPT>

```

I placed this on a buttton  
[AS]  
on (release){  
getURL(“about :changeColor(’#E6E6E6’)”);  
}  
[/AS]

when I click on the button it changes pages; the address it shows is…

C:\Documents and Settings\admin\Desktop\about :changeColor(’#E6E6E6’)

It must be something simple that I dont know about, could someone please tell me what I may have done wrong ?
