+ Start a Discussion
g kg k 

How to open a new window in page Reference method in salesforce?

Ramesh KallooriRamesh Kalloori
we can't open new window in page reference method.

if you want we can do onComplete open new window.

<apex:commandButton action="{!doSomething}" onComplete="doRedirect()" />
function doRedirect()
window.parent.location.href = 'urlgoeshere.com';

TC DeveloperTC Developer
take the page reference set it as url of <a> or or a outputlink with a option of new window target property