document.write bgcolor? (HTML/JavaScript)?

  • Thread starter Thread starter Max A
  • Start date Start date
M

Max A

Guest
Hello,

I have a mailto command inside a disp_confirm & i have the else element set to document.write but i would like the bgcolor of this page (when user clicks cancel) to be a color other than white. I cant seem to get it, can someone please help me. the color that i would like to use for the bgcolor is #8880FF

Here is the code:

<script type="text/javascript">
function disp_confirm()
{

var x=confirm("Proceed?");

if (x==true)

{ window.open("mailto:[email protected]") }

else

{ document.write ("message to user! <br> <br> Regards, <br> <br> signature");

}
}
</script>

<input value="Click Here" onclick="disp_confirm()" type="button"/>

The help would be greatly appreciated. Many thanks.

Max
 
Back
Top