How to change text colour on click using JavaScript?
How to change text colour on click using JavaScript? Code: <html><head><title>Expert Coder</title></head><body><h1 onclick=”changecolor(this,’green’)” >Click here to change text color</h1><script>function changecolor(element,clear){ element.style.color=clear; }</script></body></html>https://youtu.be/Oogy4KNvry0
How to change text colour on click using JavaScript? Read More »