When i'm click on the web page, the page turn off to balck color. is it possible?
<html> <body onMouseover="document.bgcolor='black'"> <font> . . . </font> </body> </html>
It was working fine for me.
Thank you. It was also working fine to me.
If you are creating a page and want to change the background on click you might just assign a click event to the window that would toggle the background color of the page.For example:
In IE it is important to set the height and width of the body and html to 100% or IE thinks the body is just around the content and not the size of the screen. In FF it doesn't matter.
Ur code was ok. But the poster was asking not to create a page. Just apply color when click on the page. As per his post, i suggest this code.