How to change image with onclick?

To change the image using OnClick function i have found 2 ways.

1. Using jQuery.
2. Normal JavaScript.

Lets look one by one.

second by using simple JavaScript. I suggest not you use direct JavaScript call function. Good PHP Technology companies are not using like this.


3 thoughts on “How to change image with onclick?

  1. Thom

    Hi, thanks for keeping this page, even this code was in 2010, but has really solved y task for me today…

    more than 10 hours googling with no positive outcome.. THX .. Thanks- Tom


Leave a Reply

Your email address will not be published. Required fields are marked *