Auto refresh my web page every 10 seconds without resetting all the checkboxes

How to auto refresh my web page every 10 seconds without resetting all the checkboxes?

This will auto refresh my web page every 10 seconds but will reset (uncheck) all the checkboxes


<body onload="timedRefresh(10000);">

<script type="text/javaScript">
    function timedRefresh(timeoutPeriod) {
	 setTimeout("window.location.reload(true);",timeoutPeriod);
    }
</script>

If you actually want to refresh the entire page, then you need to persist the state of it. Probably one of the easiest ways is to simply submit the form. Then, your serverside programming language can just return the html with the appropriate checkboxes checked or not.

You might not need to refesh the entire page. Maybe just a portion of it. You could use ajax, or an iframe.