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
YuvikaYuvika 

Creating a Visualforce Popup window without Salesforce header and sidebar

Hi,

I want to display a pop up window on click of a button.

I am using this code but this is displaying a proper Salesforce page with all tabs and sidebars. What should i change in this code to remove sidebars and tabs on the popup window. 

 

window.open(url,"Homepage","resizable=yes,status=yes,scrollbars=no,width=800,height=400,target=_blank");

 

Thanks

Yuvika

Grazitti InteractiveGrazitti Interactive

Hi Yuvika,

 

I think that 'url' is a variable like-

 

url = "/apex/YourPage?VariableName=Value&SecondVariableName=SecondValue";

in 

window.open(url,"Homepage","resizable=yes,status=yes,scrollbars=no,width=800,height=400,target=_blank");

if yes-

 url = "/apex/YourPage?VariableName=Value&SecondVariableName=SecondValue";

 

then edit pop up visualforce page (given in url as above in color) and modify <apex:page> componenent as following-

 

<apex:page sidebar="false" showHeader="false">

 

/** if this post helps you, please throw a kudos by clicking star on left**/

 

 

Thanks

www.grazitti.com