I am trying to learn Javascript but for some reason my .innerHTML isnt working. It doesnt even look like its registering within Sublime Text (not changing colors). Any help would be great.
<body>
<div id="container">
<h1>Internal & External Javascript</h1>
<p id="output"></p>
</div> <!-- #Container -->
<script type="text/javascript">
document.getElementbyId("output").innerHTML = "This text was created with internal Javascript";
</script>
</body>
I figured it out! I didn't make the B in by uppercase. Sorry for the easy question, remember, I am new to this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.