I have 3 images and 3 buttons, once a button is clicked its image will be displayed in a box. Now i want to be able to link each image to a different page once it is clicked on, so far i can only link all 3 images to the same page. How can i do this? Here's the code
<img src="austria.jpg" name="im1" height="300" width="300" onclick="window.open('http://google.com')"/><br/>
<button onclick="document.images.im1.src='austria.jpg';">Austria</button>
<button onclick="document.images.im1.src='korea.jpg';">Korea</button>
<button onclick="document.images.im1.src='brazil.jpg';">Brazil</button>
note: i'm a beginner at this.