We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40be4b6 commit 34b0390Copy full SHA for 34b0390
1 file changed
dom/thred.html
@@ -0,0 +1,22 @@
1
+<!DOCTYPE html>
2
+<html>
3
+ <body>
4
+ <div id="result"></div>
5
+ <button onclick="startHandler()">Start Calculations</button>
6
+ <button onclick="clickHandler()">Click Me!</button>
7
+ <script>
8
+ let div = document.getElementById('result');
9
+ const startHandler = () => {
10
+ let result = 0;
11
+ for(var i = 0 ; i< 10000000000; i++) {
12
+ result+=i
13
+ }
14
+ div.innerText += result;
15
16
+ const clickHandler = () => {
17
+ div.innerText += ' Button clicked';
18
19
+ </script>
20
+ </body>
21
+</html>
22
+
0 commit comments