quoad
Version:
Serenity/JS: Next generation acceptance testing library for modern web applications.
15 lines (14 loc) • 382 B
HTML
<html lang="en">
<body>
<h1 id="status">Not ready</h1>
<input id="load" type="button" value="load" onclick="load(10000)" />
<script>
function load(delay) {
document.getElementById('status').textContent = 'Loading...'
setTimeout(function () {
document.getElementById('status').textContent = 'Ready!'
}, delay);
}
</script>
</body>
</html>