How to close a window using jQuery

$(element).click(function(){
    window.close();
});

Note: you can not close any window that you didn’t opened with window.open. Directly invoking window.close() will ask user with a dialogue box.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)