Posts

Showing posts with the label Js

Change Emoji Reacttion using Javascript

Image
CSZONE Change Emoji Reacttion using Javascript <!DOCTYPE html> <html> <head> <title>Emoji</title> <style> body{ background-color: black; } button{ width: 100px; height: 43px; color: green; border-radius: 10px; } button:hover{ background-color: yellow; } </style> </head> <body> <center> <p id="demo" style="font-size: 100px;">&#128528;</p> <button onclick="document.getElementById('demo').innerHTML='&#128528;'">Sad</button> <button onclick="document.getElementById('demo').innerHTML='&#128512;'">Smile</button> </center> </body> </html> Source Code : Download