I am trying to get my tab to close at the end of a method call. I used window.close(). But it isnt working and I am getting a triangular yellow exclamation mark in the debugger with message that says "Scripts may close only the windows that were opened by it".
Can someone tell me how I can close any tab? Thanks.
Im using Chrome but I need it to work on all browsers.