0

I have created an HTML page.I want to make that page to close by clicking of a close button the page.I tried using:-

window.close()

and

self.close() 

method but it is not working on chrome and firefox.I came to know that they wont support these methods anymore.Is there any workaround to do so???please, help....Thanks

goku
  • 1
  • 2
  • 1
    Sure, click the "X" button on the top right corner of the window. – Teemu Apr 05 '18 at 06:19
  • https://stackoverflow.com/questions/19761241/window-close-and-self-close-do-not-close-the-window-in-chrome – Amit Soni Apr 05 '18 at 06:20
  • *Is there any workaround to do so* - no, as `This is a security feature` (according to one answer in the duplicate) I very much doubt there is a workaround or *exploit* to be able to do this - the very fact you want to do this begs the question ... **why?** – Jaromanda X Apr 05 '18 at 06:33
  • Thank you...I have been working on a project...I got a requirement with this...thats why I asked... – goku Apr 05 '18 at 07:09

0 Answers0