<html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Home Page</title> <link href="astroview/Content/bootstrap.css" rel="stylesheet"> <link href="astroview/Content/site.css" rel="stylesheet"> <link href="astroview/Content/jquery.ui.spinner.css" rel="stylesheet"> </head> <body> <div class="container body-content"> <div id="timer" class="row"></div> <hr> <footer> </footer> </div> <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> <script type="text/javascript"> // Config $(document).ready(function () { $('#timer').html(new Date()); setInterval(function() { $('#timer').html(new Date()); }, 1000); }) </script> </body> </html>