How to create Dynamic Pages through JavaScript

JavaScript can change HTML attribute values.

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


//writing output by erasing all the current content

click to open alert