Brick,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
</head>
<body>
<span id="1">0</span>
<script>
function qwe_()
{
var A= +document.getElementById('1').innerHTML;
if(A < 10) {
A++;
document.getElementById('1').innerHTML = A;
window.setTimeout(qwe_, 300)
}
}
qwe_()
</script>
</body>
</html>