posted 7 years ago
I'd like to make the images on my site work as links, however, not external links, rather for them to simply open a new window, without having to load the page. If I'm not mistaken, I should be able to do this using AJAX right? This is an example of a coded image:
<li class="hex">
<a class="hexIn" href="#">
<img src="assets/fitness.jpg" alt="" />
<h1>Fitness</h1>
<p>Sample text</p>
</a>
</li>
So the question is, how do I replace 'href' with that 'open window on click' functionality? Thanks in advance.