Kishan Kumar

Kishan Kumar

  • 1.8k
  • 127
  • 6.8k

Timer Counter use Don't refresh the page

Feb 17 2018 2:24 AM
How to timer count set and if the refresh page , timer count not refresh.
Plese provide me ans.
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>jQuery Countdown</title>
<link rel="stylesheet" href="css/jquery.countdown.css">
<style type="text/css">
#defaultCountdown { width: 240px; height: 45px; }
width: 240px; height: 45px;
<script src=""></script>
<script src="js/jquery.plugin.min.js"></script>
<script src="js/jquery.countdown.js"></script>
$(function () {
var austDay = new Date();
austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
$('#defaultCountdown').countdown({until: austDay});
$('#until30s').countdown({until: +1800});
window.onbeforeunload = function() {
return "Are you Sure Submit the page ?";
<div id="defaultCountdown"></div>
<div id="until30s"></div>

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (3)