Difference between revisions of "ARIA Live"

From Level Access Web Labs
Jump to navigation Jump to search
Line 9: Line 9:
 
result1 = result1 + 1;
 
result1 = result1 + 1;
 
document.getElementById("result1").innerHTML=result1;
 
document.getElementById("result1").innerHTML=result1;
 +
}
 +
function auto() {
 +
  setTimeout(function(){update()},2000);
 
}
 
}
 
</script>
 
</script>
Line 18: Line 21:
  
 
<div>
 
<div>
<button onclick="update1();">Update result 1</button>
+
<button onclick="update1();">Update result</button>
 +
<button onclick="auto();">Auto Update result</button>
 
</div>
 
</div>
 
...
 
...

Revision as of 19:14, 23 May 2018

... ...

...