How I can close current tab in a browser window using JavaScript?
-
I am looking for a method to close the current tab of the browser window using JavaScript.
-
I am looking for a method to close the current tab of the browser window using JavaScript.
-
Unfortunately you can't for security purposes. You can only close windows that were opened by Javascript.
In earlier time it was possible to close the current tab by using the window.close() function. The following syntax was used at that time: Syntax: window.close(); I read This here- How to close current tab in a browser window using JavaScript ?[^]
-
In earlier time it was possible to close the current tab by using the window.close() function. The following syntax was used at that time: Syntax: window.close(); I read This here- How to close current tab in a browser window using JavaScript ?[^]
Member 14713926 wrote:
window.close();
If you know about this, why are you asking then?
Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.
-
Member 14713926 wrote:
window.close();
If you know about this, why are you asking then?
Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.
Because it's an excuse to post a link to his spam "best programming tutorials" site. :laugh:
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Because it's an excuse to post a link to his spam "best programming tutorials" site. :laugh:
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Richard Deeming wrote:
"best programming tutorials"
I could use some of that.
Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.
-
In earlier time it was possible to close the current tab by using the window.close() function. The following syntax was used at that time: Syntax: window.close(); I read This here- How to close current tab in a browser window using JavaScript ?[^]
In earlier times you got the full client path from a file upload and we were running ActiveX on our web pages. What's your point?
-
In earlier time it was possible to close the current tab by using the window.close() function. The following syntax was used at that time: Syntax: window.close(); I read This here- How to close current tab in a browser window using JavaScript ?[^]