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
LeonardLeonard 

Full screen Visual force

Is there any way to create a full screen experience for my visualforce page while still being hosted on Salesforce? I don't want to migrate the front end to my site unless I have to.

CaptainObviousCaptainObvious

Im not sure if this is what you mean- but include showHeader="false" standardStylesheets="false" sidebar="false" in your <apex: page> tag to start with a 'clean slate'.

aditi_mukherjee86aditi_mukherjee86
// Find the right method, call on correct elementfunction launchFullScreen(element) {
  if(element.requestFullScreen) {
    element.requestFullScreen();
  } else if(element.mozRequestFullScreen) {
    element.mozRequestFullScreen();
  } else if(element.webkitRequestFullScreen) {
    element.webkitRequestFullScreen();
  }
}
// Launch fullscreen for browsers that support it!launchFullScreen(document.documentElement); // the whole page

tried with this but not working
Sitanshu TripathiSitanshu Tripathi
Use this code for hide header and sidebar of the Salesforce page when you create a VisualForce page.
This is a best simple example according to me because I'm also a fresher in SalesForce.

<apex:page standardController="Contact" sidebar="false" showHeader="true">
<!-- Your Code -->
-------
-----------
-----------
-----------------
---------------------

</apex:page>