function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Daniel RetaleatoDaniel Retaleato 

Use force:navigateToURL to open new window instead of new tab

Hi all!

When I use force:navigateToURL, it opens the URL in a new tab. Is there anyway to force this to open in a new browser window instead?
Thanks in advance, code pictured below
var urlEvent = $A.get("e.force:navigateToURL");
 urlEvent.setParams({
            "url": "https://xxxxxx.pss.koresoftware.com/sfdc/ticketing/Activity/PhoneCallSave.aspx"
        });
 urlEvent.fire();

 
Best Answer chosen by Daniel Retaleato
Raj VakatiRaj Vakati
You can use window.open(url ) like below
 
window.open('www.youraddress.com','_top')

 

All Answers

Atla Satheesh 8Atla Satheesh 8
Hi Daniel,

There is no option to oepn a new browser window, but you can still use window.open(url) but it is not the best option
Raj VakatiRaj Vakati
You can use window.open(url ) like below
 
window.open('www.youraddress.com','_top')

 
This was selected as the best answer