Slaesforce FAQ

how to use window.opener in javascript salesforce

by Miss Clotilde Toy III Published 3 years ago Updated 2 years ago
image

The common way to do this (from the article) in code is: const otherWindow = window.open (); otherWindow.opener = null; otherWindow.location = url; However, in Salesforce components, the window object appears to be destroyed and not the browser window.

Full Answer

Why do I have a popup window modal?

Making a popup window modal helps prevent it from being lost behind the main browser window. The following technique makes the popup window display above the window that created it. However, it doesn’t force the window to stay on top when other tabs or applications have focus.

What is a popup window?

A popup window may be used to alter information related to what is displayed on the page that initiated the window. This may require the original page to be refreshed or redirected. Assign the URL to the window.opener.location.href property to change opener’s page.

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9