+ 2
Can you close a window in javascript using the window.close() method?
Lets say you did not open the window using js methid window.open(), can you still close it using the window.open(' ', '_self').close() method? Or is there another method to close the window, considering you want to close it using a button that returns the close function, can you close it? Please explain.
3 Antworten
+ 1
Try this bro: <a href="self.close"><button>Close</button></a>
+ 3
Worked.. thanks man
+ 1
Alfred Juma please to help you!