blob: d6eaa02ea84ed0a6dafef522369a2b6b83f005a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!DOCTYPE html>
<html>
<head>
<script>
function boom()
{
var table = document.getElementById("table");
var newCaption = document.createElement('caption');
newCaption.appendChild(document.createTextNode("THIS SHOULD BE VISIBLE"));
table.insertBefore(newCaption, table.firstChild);
}
</script>
</head>
<body onload="boom();">
<table id="table"><tbody></tbody></table>
</body>
</html>
|