Code:
/*This is time counter -it will update every minute
I want to get the value from javascript and save it to database?
*/
<form name="myForm" method="post">
<script type="text/javascript">
var num = 0;
function IncCounter() {
num = num + 1; // increment counter by 2
document.myForm.counter.value = num;
t = setTimeout('IncCounter()', 600);