I have an `a` in a `div` and want to change the window location on click of `div`.

```
<div class="div-class">
  <a href="/" target="_blank" class="a-class"></a>
  <a href="/somewhere" target="_blank" class="a-class-2"></a>
</div>

```

```js
$(document).on("click", ".div-class:not(.a-class, .a-class-2)", function() {
   window.location = "/somewhere-else";
}

```

When clicking on either a, a new tab opens and the current window changes location. I want it to be that if you click on any a it will open a new tab, if you click on the containing div it will change window location.