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

<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="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.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: