Pages

HTML

JavaScript:
This function can be used to change the back ground color of web page.
Note: background-color property can not be used here.
function c_color()
{
var a=document.getElementById('txt1').value;
//var c=Number(a)/Number(b);
//alert("aaaaaaaaaaa");
document.getElementById("con").style.background=a;
}




No comments:

Post a Comment