Introduction of JavaScript

JavaScript is the programming language of HTML and the Web.

JavaScript is easy to learn.

This tutorial will teach you JavaScript from basic to advanced.


JavaScript Can Change HTML Content

One of many JavaScript HTML methods is getElementById().

example:

<!DOCTYPE html>
<html>
<body>

<h1>What Can JavaScript Do?</h1>

<p id="demo">JavaScript can change HTML content.</p>

<button type="button" onclick='document.getElementById("demo").innerHTML = "Hello JavaScript!"'>Click Me!</button>

</body>
</html>

Comments

Popular posts from this blog

Codeigniter Fullcalendar Example

CSS Layer on layer with z-index

how to export html data to pdf in angularjs and javascript