html
html
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<button onclick="stop()">Stop</button>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
background-color: teal;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
//window.onload = () =>{
test = true
func = ()=>{
if (test){
document.body.innerHTML += "<br>Hi"
}
}
setInterval(func,1000)
function stop(){
test = false
}
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run