My question is related to this post: Javascript : History back() Method
I want to implement a "back" button on my website. But lets imagine the page was opened in a new tab.
Is there a way to close the window, if the browser history is empty?
I am kinda struggling to connect the history.back() and window.close() function but that's all I ve got to do, isn't it?
appreciate your help!