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
Jina ChetiaJina Chetia 

How to open a VisualForce page without any adressbar?


I have a VisualForce page which I am opening it on click of a Custom Button on the Contract Object. I want to open this page in a new window without the address bar. I tried all the following options but it does not work-

1) Opening using JavaScript by configuring it in 'Edit Contract Custom Button' -'apex/Wizard_Step1a?id={!Account.Id}','scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no')
3) By giving the option 'Display in existing window without header and sidebar' and specifying the URL of the page as '/apex/Wizard_Step1a?id={!Account.Id}'

Can anyone please help me solve this issue?

What about the adding parameter, location=no

This is an old post but incase anyone searches to it I found the best way to do this is...



<apex:page standardStylesheets="true" showHeader="false" sidebar="false" tabStyle="Opportunity" controller="XSFIPageController">
        <apex:form >
          <apex:pageMessages showDetail="true" />
          <!--<apex:commandButton value="Retry" action="{!CallOut}"/>-->


Hope it helps someone! :)



Hi It is not working fine. Still It is showing address bar.