I've been trying to create a custom homepage/new tab extension that uses html to show a bunch of tiles which link to sites that I frequently use.
I think I'm using a somewhat janky way of creating these 'tiles', but long story short I want to get one to execute some javascript in order to open a new incognito window (re here) I've tried using the onclick / onsubmit for the form/button elements to no success & tried giving the form an id then creating an eventlistener for click - also which I couldnt get to work.
Bit of a beginner in this area, any advice on where to start would be appreciated
Code for each of the 'tiles':
<form>
<button formaction="https://UrlHere">
<img src=".\AssetHere" />
<label><span>Description here</span></label>
</button>
</form>
<script src="newInPrivate.js"></script>