<input id="con" type="text" name="con">
<script type="text/javascript">
var sta = 1;
function st(){
<script type="text/javascript">
var sta = 1;
function st(){
sta++;
document.getElementById("con").value=sta;
setTimeout('st()',1000);
}
st();
</script>
document.getElementById("con").value=sta;
setTimeout('st()',1000);
}
st();
</script>