<div class="box">
<img src="URL адрес" class="image">
<button class="button">GO</button>
</div>
<script>
const butt = document.querySelector(".button")
const image = document.querySelector(".image")
butt.addEventListener("click", ()=> urlImage())
function urlImage() {
image.setAttribute('src',"http://www.kenwalger.com/twitter_cards/mongodb-atlas.png")
}
</script>