Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div id="time"></div>
</body>
</html>
 
setInterval(function(){
    var dt=new Date(), h=dt.getHours(), m=dt.getMinutes(), s=dt.getSeconds(),
    curTime= pad(h)+':'+pad(m)+':'+pad(s); 
    document.getElementById('time').innerHTML=curTime;
}, 500);
function pad(n) { return ("0" + n).slice(-2); }
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers