If you need a link to open in a new window using javascript, most often you try an option like:
if (key == 'brand') { window.location = 'https://brand.com'; target='_blank'; }
But in real life this approach does not work and the link does not open in a new window. What is the reason? It's simple - the window.location function sets
the url of your current window, and to open a new window, you need to use the window.open function. So, to make a js link open in a new window it is better to use the following combination:
if (key == 'brand') { window.open('https://brand.com', '_blank') }
If you need to put such a javascript link on a whole div at once, the code will look something like this:
<div class="content-block" onclick="window.open('http://brand.com', '_blank')">
...
</div>