html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div id="Cont">
<button id="Back">Back</button>
<button id="Next">Next</button>
</div>
<div align="center"><span id="NumDisplay"></span></div>
<pre id="Error" style="color:red;"></pre>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#Cont button {
border:none;
padding:7px;
background-color: #29cc10;
}
#Next {
float:right;
cursor:pointer;
}
#Back {
cursor:pointer;
}
body {
margin:0;
}
#Next:hover {
background-color: #21a30d;
}
#Back:hover {
background-color: #21a30d;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
window.onload = function Events() {
try {
document.getElementById("Back").addEventListener("click", BackAction);
document.getElementById("Next").addEventListener("click", NextAction);
document.getElementById("NumDisplay").innerText = i;
} catch(error) {
document.getElementById("Error").innerText = error;
}
};
function BackAction() {
}
function NextAction() {
}
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run