Ask coding questions

← Back to all posts
How to Close a page in javascript
MikeJMS8910 (234)

So I want to make it so that you can close the tab that you are in and when I looked it up it says to do -
location.close();

but this doesn't seem to work so what do I need to do

Answered by sammightyt (26) [earned 5 cycles]
View Answer
Comments
hotnewtop