How to click the button to execute the shutdown program

  • How to click the button to execute the shutdown program?
    window.close(); * It didn’t work when tested on the phone