Laravel email verify using passport and without using auth middleware and EmailVerificationRequest on July 12, 2024 laravel
Display current time by javascript on January 13, 2021 Get link Facebook Twitter Pinterest Email Other Apps In this post we will learn how to display current time on the web page using by few javascript code. few javascript code given to below for display current time to click button and show current time. You can use that code for display current time. Code:<label>Time:</label><label id="tm"></label><br><input type="button" value="SHOW TIME" id="showBtn" onclick="my()"><script> var c =0; var t; function checkTime(i) { if(i<10) { i ="0"+i; } return i; } function my() { document.getElementById("showBtn").style.display="none";c = c+1;t= setTimeout(my,1000); var today = new Date(); var h = today.getHours(); var m = today.getMinutes(); var s = today.getSeconds(); h = checkTime(h); m = checkTime(m); s = checkTime(s); document.getElementById('tm').innerHTML=h+":"+m+":"+s; }</script>OUTPUTTime: Comments
Comments
Post a Comment
If you any doubt of any topic then you can comment me.