Background colors and status bar message

08/10/2009 01:59

<html>
<head>
<title>Background colors and status bar message</title>
<script language="javascript">
function func1()
{
document.bgColor="#FF0000"
window.status="Red color"
}
function func2()
{
document.bgcolor="#00FF00"
window.status="Green color"
}
</script>
</head>
<body>
<center>
<br><br>
<p align="center">Click the button below to change the background color</p>
<input typee="button"name="but4"value="red" ONCLICK='func1()'>
<input typee="button"name="but5"value="blue" ONCLICK='func2()'>
<input typee="button"name="but5"value="red" ONCLICK='func3()'>
</center>
</body>
</html>

Back

Search site

Copyright © 2012 Dadaso Zanzane. All rights reserved.