Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

How to close a tab using javascript? window.close() doesnt work here.

  • 1 antwurd
  • 4 hawwe dit probleem
  • 2 werjeftes
  • Lêste antwurd fan cor-el

more options

I am using the following function to close current tab.

function closeWindow() {
           window.open("", "_self");
           window.close(); 
       }
I am using the following function to close current tab. function closeWindow() { window.open("", "_self"); window.close(); }

Alle antwurden (1)

more options

You can only close windows that way that are opened via window.open()

This method is only allowed to be called for windows that were opened by a script using the window.open() method. If the window was not opened by a script, the following error appears in the JavaScript Console: Scripts may not close windows that were not opened by script.