"Change body Color using java script"
Bootstrap 4.0.0 Snippet by irbees2008

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Change body Color using java script</title> </head> <body > <br /> <br /> <center> <p>Select any color and see the magic</p> <!--<input type="color" onchange="document.body.bgColor=this.value"/><br>--> <input type="color" id="bg" onchange="nna()"/> </center> <script> </script> </body> </html>
function nna(){ x=document.getElementById('bg').value; document.body.bgColor=x; }

Related: See More


Questions / Comments: