Closing the opened tab through javaScript
Javascript:
run this
window.opener='x';
window.close();
Above example would ask for user confirmation.
Do you want to close or not ??? type
Incase you dont want confirmation from user... and force closing
Try this:
window.open('', '_self', '');
alert('Window is closing');
window.close();
Javascript:
run this
window.opener='x';
window.close();
Above example would ask for user confirmation.
Do you want to close or not ??? type
Incase you dont want confirmation from user... and force closing
Try this:
window.open('', '_self', '');
alert('Window is closing');
window.close();
No comments:
Post a Comment