Optional
pathname: stringOptional pathname to check if the opener window has the same pathname.
The window-like object to use for checking the opener. Default is window
.
true
if the current window has an opener window with the same origin and optional pathname, otherwise false
.
Check if the current window has an opener window with the same origin and optional pathname. This is useful for checking if the current window was opened by another window from within the same application.