window.close() method closes the current window.
Note: This method can only be called on windows that were opened by a script using the window.open() method.
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.