title: How To Change Image And Link On Click As Toggle Function?
body: <p>I want a Pure JavaScript code that will change an image and also its link to another image and another link on same place as toggle function. I have a web page and I have <strong>Anchors Links</strong> button as <code>&lt;a href="#DIV2"&gt;&lt;img src="DownArrow.png"/&gt;&lt;/a&gt;</code> and I want that after clicking on this image, first it will lead you to the DIV2 and then it will change the code to <code>&lt;a href="#DIV1"&gt;&lt;img src="UpArrow.png"/&gt;&lt;/a&gt;</code>. How to do this using pure JavaScript? Waiting for perfect reply and code?</p>