<a href="javascript:history.back()"> does work in Chrome, but in Electron always goes to index.html

时间:2019-05-22 13:20:04

标签: javascript html electron

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.

0 个答案:

没有答案