In javascript I want to tell post-container that when I click on it, take the href located at link and go to page X.
There are multiple
post-container
My code is this:
<div class="post-container">
  <a class="link" href="X">
    <h2 class="post-title">Hello, world!</h2>
  </a>
  <div class="date-posts">...</div>
</div>
I want to be able to click outside the
Hello, world!title of my post in any area of post-containerand go to page X
Any idea how to do this?

 
     
     
     
     
    