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
joannjoann 

Opening a new window...

I have a visual force page with a button that calls another visual force page which is working fine, however, I want a new page to open when the button is clicked instead of loading into the existing browser window.  I'm not finding anything in the documentation on how to do this - or am I just overlooking it? 

 

If anyone has an idea, I would really appreciate it!

 

Thanks!

 

JoAnn

dke01dke01

This is only via HTML or Javascript no visualforce/apex is available.

 

If its just a hyperlink  you can just add  'target="_blank" '  as an attribute of the hyperlink

 

Or you can use JavaScript  window.open command

Shailesh DeshpandeShailesh Deshpande

use target = "_blank"