Search
 
SCRIPT & CODE EXAMPLE
 

HTML

time in website

<html>
<head> </head>

<body onload=display_ct();>
  <span id='ct' ></span>
</body>
</html>
Comment

time in website

function display_c(){
   var refresh=1000; // Refresh rate in milli seconds
   mytime=setTimeout('display_ct()',refresh)
}

function display_ct() {
  var CDate = new Date()
  var NewDate=CDate.toDateString(); 
  NewDate = NewDate + " - " + CDate.toLocaleTimeString();
  document.getElementById('ct').innerHTML = NewDate;
  display_c();
}
Comment

PREVIOUS NEXT
Code Example
Html :: how to scrool some photos in html 
Html :: vue does v-html inject html 
Html :: xss html 
Html :: how to convert html to jpg 
Html :: tailwind css typography 
Html :: double range slider html 
Html :: html tutorial 
Html :: what is the html command 
Html :: change text color in bootstrap 
Html :: html aside tag example 
Html :: vue if 
Html :: animated gif 
Html :: How to install Ubuntu 17.04 in VMWare Workstation 
Html :: shortcut to open vscode html page in chrome 
Html :: html front page 
Html :: func.apply is not a function at HTMLUnknownElement.callCallback 
Html :: left icon with primng 
Html :: how to make the ignore part html like in ## 
Html :: am pm after the time in html 
Html :: inline location href 
Html :: unity console debug bold 
Html :: html all caps (applicable only visually) 
Html :: how to alert in http 
Html :: mobile width reads 980px ? 
Html :: Metabox 
Html :: angular html conditional text 
Html :: github find out download filesize 
Html :: nio aandelen 
Html :: how to inherit template expath odoo 
Html :: jnbvtfvghbjklk;oojhv 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =