When i press the button location an image will show on a new
When i press the button location, an image will show on a new, blank web page. This must be done using html and javascript. Here is my html:
<tr>
<td> Maps</td>
<td> Display a pinpoint location of campus</td>
<td> <button onclick = \"location()\">map</button></td>
</tr>
Solution
<tr>
<td> Maps</td>
<td> Display a pinpoint location of campus</td>
<td> <button onclick = \"location()\">map</button></td>
</tr>
<script>
function location() {
window.open(\"here you can pass the actual path or link of the image\");
//this will open the passed image on a new page.
}
</script>
