If upon clicking a button I wanted to have the text onpage turn blue, and the background turn red, what would I do?
I can make the text turn blue... but simultaneously the page turn red?Code:<html> <body> Sample Text<br> <button onclick="document.fgColor='blue';">Blue</button> </body> </html>




Reply With Quote