My Oracle Support Banner

Why window.close() javaScript API Does Not Close The Current Browser's Tab/Window In ADF Pages? (Doc ID 2897843.1)

Last updated on SEPTEMBER 27, 2023

Applies to:

Oracle JDeveloper - Version 1.0 and later
Information in this document applies to any platform.


An ADF page has a page in which JavaScript code using window.close() API is added in order to close the current browser's tab/window.

However, when the JavaScript code is executed the tab is not closed and in some browsers the following message is seen in JavaScript console

Scripts may close only the windows that were opened by them.

Why is this happening and how to implement the requirement?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.