# Change image onChange

**URL:** https://forum.kirupa.com/t/change-image-onchange/639512
**Category:** Uncategorized
**Created:** [March 17, 2019, 11:30pm UTC](https://forum.kirupa.com/t/change-image-onchange/639512 "2019-03-17T23:30:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sukhwinder\_Saini](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@Sukhwinder\_Saini](https://forum.kirupa.com/u/Sukhwinder_Saini)
#### Post date: [March 17, 2019, 11:30pm UTC](https://forum.kirupa.com/t/change-image-onchange/639512/1 "2019-03-17T23:30:09Z")

</div>

I want to find the way how to change the image logo when an image is loaded into from input field  
i have found a similar program on [codepen.io](http://codepen.io) ([https://codepen.io/shantikumarsingh/pen/RRmWxo?editors=1010](https://codepen.io/shantikumarsingh/pen/RRmWxo?editors=1010))

But this is difficult to get it

I hope you guys have a better solution for this  
Thank you

---

<div class="post-metadata">

### Author: ![JohnHansenArtist](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnhansenartist/32/8958_2.png) [@JohnHansenArtist](https://forum.kirupa.com/u/JohnHansenArtist)
#### Post date: [March 18, 2019, 1:05am UTC](https://forum.kirupa.com/t/change-image-onchange/639512/2 "2019-03-18T01:05:22Z")

</div>

You would just need to use an event listener on the input using onload, loading. This you can then use to trigger your DOM to change how you want.
