mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 10:27:35 +00:00
Base: Move all the HTML test content into /res/html/misc
This commit is contained in:
parent
4720635aab
commit
de12cf6821
58 changed files with 1 additions and 1 deletions
17
Base/res/html/misc/innerHTML.html
Normal file
17
Base/res/html/misc/innerHTML.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div id=clicky style="background-color: red; color: white; border: 1px solid black;">Click me</div>
|
||||
<div id="foo">This has <b>some HTML</b> inside it!</div>
|
||||
<script type="text/javascript">
|
||||
function hax() {
|
||||
var foo = document.getElementById("foo");
|
||||
console.log("trying");
|
||||
foo.innerHTML = 'But now the HTML has changed!';
|
||||
}
|
||||
document.getElementById("clicky").addEventListener("mousedown", hax);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue