Currently, I am facing an issue with my Angular 9 app running in Chrome within a Kiosk mode environment. I urgently require a solution to close the Chrome browser as there is no keyboard attached to the PC handling the app.
Is there a way to achieve this programmatically without relying on extensions? Transitioning to another browser is also a viable option.
Prior attempts involved accessing the window
object in Angular and utilizing window.close();
, but it appeared that I was targeting the wrong instance, leading to only a component of the application shutting down instead of the entire Chrome window.
I understand that closing a window via JavaScript is restricted if it wasn't initially opened using JavaScript. However, based on a comment from this particular source, I speculated that Kiosk mode could potentially alter these rules.
Edit:
Investigation revealed that the component shutdown was due to a glitch within our software, explaining why window.close();
failed to function as anticipated.