javascript - Change site background colour with colour picker -
I am using for my site. I want to change the background of my website body / html , when the selection is in progress as soon as there is a change in the background of the textbox. I have looked at the JS file but found it a little complicated I have written to the How can I get it? Thank you In the demo page you have "Onchange event": You need to create My guess is that in your example, you have forgotten before the document.body.style.backyle = styleElement.jscStyle.backgroundColor; 410-430 added between lines but nothing changed.
Input like this:
& lt; Input class = "color" onchange = "document.body.style.backgroundColor = '#' + this.color" & gt;
# color hex code.
Comments
Post a Comment