0

I’m developing a small web app, and I want to add a ‘close’ button.

The app runs inside Chrome window, and runs from a desktop shortcut (there's no opening window). I’m using AngularJS on client side & NodeJS backend.

Every solution I've tried:

$window.close();

$window.self.close();

$window.open(‘’, ‘_self’, ‘’); $window.close();

Returns this error:

"Scripts may close only the windows that were opened by it."

Any other creative idea how to bypass/hack this restriction without setting the browser’s configuration?

Thanks.

Erez Carmel
  • 39
  • 1
  • 7

0 Answers0