2012-08-01 11:25:45 -07:00
|
|
|
<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>
|
2016-02-04 07:11:19 -08:00
|
|
|
<noscript><p>Javascript is disabled</p></noscript>
|
2012-08-01 11:25:45 -07:00
|
|
|
<script type="text/javascript">
|
|
|
|
document.getElementById("demo").innerHTML="text inserted by script";
|
|
|
|
</script>
|
|
|
|
<p>Afterwards</p>
|
|
|
|
</body>
|
|
|
|
</html>
|