Please login to start chat

JS Event Listener 1

Created on : 25 Jun 2022, 11:40:30

<!DOCTYPE html>
<title>JavaScript Code Testing</title>
<p id = "demo">The Date is:</p>
<button type = "button" id = "test">Show Date</button>&nbsp;&nbsp;
<button type = "button" id = "test1">Hide</button>
document.getElementById("test").addEventListener('click', jsFun);
document.getElementById("test1").addEventListener('click', jsHide);

function jsFun(){
document.getElementById("demo").innerHTML = Date();

function jsHide(){
document.getElementById("demo").innerHTML = "";



No Commments to show

About Me
Blog and Ambitions
Terms and Conditions
Contact Me
Service and Guarantee
Customers and News