Every line of 'close current window javascript' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
57 function closeWindow () { 58 chrome.runtime.getBackgroundPage(function (backgroundPage) { // Set the bounds for the Mado's window size on relaunch. 59 backgroundPage.newBounds(chrome.app.window.current().getBounds()); 60 }); 61 if (saveState.innerHTML == "<span></span>") // Save not made. 62 closeDisplayer.className = "visible"; 63 else { 64 sendClosing(); // stats.js 65 chrome.app.window.current().close(); 66 } 67 }
90 function closeWindow() { 91 var index = parent.layer.getFrameIndex(window.name); 92 parent.layer.close(index); 93 parent.winfns[index] = null; 94 }
72 close(windowID) { 73 if (this.windows[windowID]) { 74 this.windows[windowID].close(); 75 } 76 }
121 function closeWindow (name) { 122 if (currentWindows[name]) { 123 currentWindows[name].close() 124 return true 125 } 126 }
78 function close_window() { 79 is_closed_manually = true; 80 window.open('', '_self', ''); 81 window.close(); 82 }
60 function closeWindow() { 61 window.open('','_self').close(); 62 }
142 function closeWindow() { 143 window.open('', '_self'); 144 window.close(); 145 }
104 async closeCurrentTab() { 105 await this.driver.close(); 106 return this; 107 }
222 function closeTabFunc() { 223 BrowserWindow.getFocusedWindow().webContents.executeJavaScript('closeCurrentTab()'); 224 }
39 onClickClose () { 40 remote.getCurrentWindow().close() 41 }