You need to be logged in to post in the forums. If you do not have an account, please sign up first.
Originally posted by sgunhouse:
In an empty tab? Of course not, there is no javascript environment for an empty tab. Rather, go to the address bar of this tab and type javascript:window.close(); into it. (Don't worry, you can reopen the tab from the closed tabs list.)
Empty or not empty, for me it doesn't close anyway
And I also tried avoiding url javascript because it uses to be more limited.
Originally posted by sgunhouse:
Didn't work anyway ... (Now that I'm actually using the beta to test it, instead of the stable version.)
Thanks a lot for the confirmation.
Would you mind trying something else?
If I open any link with Ctrl+Click (to have a fresh tab) and then use "javascript: window.close();", now it DOES work, so it seems that the problem is just for reused tabs
Originally posted by daniel:
window.close() can only be used to close windows opened from JavaScript.
Thanks for the explanation; I can understand this behaviour from a security perspective and it's a nice feature.
However, is there going to be a workaround for the (presumably) thousands of workers who use Opera to access internal web applications? Those web applications have a Close [Esc] button on the login screen and the user is going to be clicking that button, hitting Esc and then calling their IT Support staff when it won't go away. Often they're running in full screen kiosk mode so they won't know they have to hit Alt+F4.
Are there any plans for a workaround, like an "Allow script to close main window" setting in Site Preferences -> Scripting?
Forums » Opera for Windows/Mac/Linux » Beta testing (including snapshots and previews)