html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<eval>3 + 4</eval><br>
<eval id="blah">5*7</eval><br>
<eval>57 + 98</eval><br>
1+1=<eval>1+1</eval>
<br>
You can also make it block!<br>
9+10 = <eval id="block">9 + 10</eval>
<p>Thank you NUHEEN for assisting me in this! In the form of an answer, of course!</p>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
eval {
color: blue;
}
#blah {
background-color: red;
}
#block {
display: block;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
var evaler = document.getElementsByTagName("eval");
window.onload = function () {
for (i = 0; i < evaler.length; i++) {
evaler[i].innerHTML = eval(evaler[i].innerHTML);
}
}
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run