Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

Close a window


window.close()

Note :   if JavaScript code tries to close its parent window the browser will open
a dialog to confirm the closing of the window.