Please read the guide .
Please answer the question in detail
<!DOCTYPE html> <html> <body> <button onclick="red()">red</button> <button onclick="green()">Green</button> <script> function red() { document.body.style.backgroundColor ="red"; } function green() { document.body.style.backgroundColor ="Green"; } </script> </body> </html>
<!DOCTYPE html> <html>
<body> <button onclick="red()">red</button> <button onclick="green()">Green</button>
<script> function red() { document.body.style.backgroundColor ="red"; }
function green() { document.body.style.backgroundColor ="Green"; } </script> </body>
</html>
Doubtly is an online community for engineering students, offering:
Get the pro version for free by logging in!
5.7k questions
5.1k answers
108 comments
557 users