netsurf/test/js/inline-innerhtml.html

16 lines
373 B
HTML
Raw Normal View History

<html>
<head>
<title>Inline Script innerHTML Test</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
<h1>Inline Script innerHTML Test</h1>
<p>Before</p>
<p id="demo">some text you should never see</p>
<script type="text/javascript">
document.getElementById("demo").innerHTML="text inserted by script";
</script>
<p>Afterwards</p>
</body>
</html>