Is there a way to close the Chrome tab on the html page?What I'm looking for is some kind of javascript that will say: Click here to close the tab!
I think you can just use the window.close () function, as when closing a popup or regular window:
http://www.javascript-coder.com/window-popup/javascript-window-close.phtml
Update: This no longer works in newer versions of Chrome. However, by opening a new window, do the following:
<a href="javascript:window.open('foo.html', '_self', '');">Open window</a>
and using
<a href="javascript:window.close();">Close window</a>
in foo.html works for me in Chrome 17. See also http://www.google.com/support/forum/p/Chrome/thread?tid=23c03746e3aa03f9&hl=en .
foo.html
Source: https://habr.com/ru/post/1334504/More articles:Automatically generate email addresses and receive email using C #? - c #Schedule IntentService - androidMySql Cursor - creating a procedure - mysqlIs there an easy way to get a JSON dataset from a remote server in Grails? - jsonFinding CPU time in Windows from the command line - windowsIs there an easy way to add a check mark to the tip of a balloon? - c #Open application on specified page using Push Notification - iosHow to activate foreign keys in C using sqlite? - cDoes MySQL MyISAM lock table lock update lock and prevent reading? - sqlUnderstanding this CSV header - javaAll Articles