The power of JavaScript


The power of JavaScript.

Change HTML content.


JavaScript can change HTML content.When calling getElementById() .
This example will tell you how to find element using it's id and change HTML content.
Just checkout - JSFiddle

Change HTML attribute.
JavaScript can change HTML attributes of an element .This example change the src(source) of <img> element.
Just checkout - JSFiddle

Change HTML styles (CSS).
Find a HTML element and change styles.
Just checkot - JSFiddle

Hide HTML elements.
It can hide HTML element using style.display  .
Just checkout - JSFiddle

Show HTML elements.
Hidden elements can be show using JavaScript.
Just checkout - JSFiddle




No comments:

Post a Comment