summaryrefslogtreecommitdiff
path: root/test/js/doc-write-style.html
blob: b30dbfffa331a02612d5901f45e04a7a96ce8198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
<head>
<style>
p { color: red; background: #fdd; }
</style>
</head>
<body>
<noscript><p>Javascript is disabled</p></noscript>
<script>
document.write('<style>p#foo { color: green; background: #dfd; }</style>');
</script>
<p id="foo">JS makes me green!</p>
</body>
</html>