I wrote an HTML + CSS webpage with some jave code inside the index.html . Now I am trying to make an app out of it with Electron. When I hit the
<a href="javascript:history.back()" class="previous">
<img src="img/previous_mobile2.svg" alt="previous">
</a>
I always get returned to the index.html page. I already tried to change it to
<button onClick="goBack()" class="previous">
<img src="img/previous_mobile2.svg" alt="previous">
</button>
but it does nothing then and also doesn't look nice, since the button gets gray then.