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?

Hi,

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' - window.open('apex/Wizard_Step1a?id={!Account.Id}','scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no')
2) window.open('apex/Wizard_Step1a?id={!Account.Id}','_blank')
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?

Thanks,
Jina
TehNrdTehNrd
What about the adding parameter, location=no
G_G_

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">
<html>
    <head>
        <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"/>
    </head>
    <body>
        <apex:form >
          <apex:pageMessages showDetail="true" />
          <h1>{!stringResult}</h1>
          <p>{!stringMessage}</p>
          <!--<apex:commandButton value="Retry" action="{!CallOut}"/>-->
          </apex:form>
    </body>
</html>
</apex:page>

 

Hope it helps someone! :)

 

VenkataRajaVenkataRaja

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