Is it possible to use Javascript to close Android Browser?

前端 未结 5 805
有刺的猬
有刺的猬 2021-01-21 05:03

I want to put a \"close\" button in a web page (our client wants to do that)
and when I click this button, I want to close Browser (not the current tab but \"browser\" in An

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-21 05:35

    window.close() actually works for Web Apps that were added to the home screen (with Chrome Beta).

    It cleanly closes the app and gets back to the home screen.

提交回复
热议问题