What Can JavaScript Do?

JavaScript can change HTML attribute values.

In this case JavaScript changes the value of the src (source) attribute of an image.


JavaScript can change the style of an HTML element.


JavaScript can show hidden HTML elements.



JavaScript can hide HTML elements.