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
k sfdck sfdc 

Click a button How to call a new popup window ?

Hi,
 Click a button How to call  a new popup window  and in the popup browser window, how to disable the address bar ?

help me...
Wizno @ ConfigeroWizno @ Configero
<a href="http://salesforce.com" class="btn" onclick="javascript:void window.open('http://salesforce.com','1414853221106','width=800,height=600,toolbar=0,menubar=0,location=1,status=1,scrollbars=1,resizable=1,left=0,top=0');return false;">My PopupButton</a>

OR

<apex:commandButton onclick="javascript:void window.open('http://salesforce.com','1414853221106','width=800,height=600,toolbar=0,menubar=0,location=1,status=1,scrollbars=1,resizable=1,left=0,top=0');" value="My Popup Button></apex:commandButton>

If you ever need a quick way to generate another one, just go here: http://www.textfixer.com/html/javascript-pop-up-window.php
k sfdck sfdc
Hi,
            How to disable the address bar?

please help me..
Wizno @ ConfigeroWizno @ Configero
<apex:commandButton onclick="javascript:void window.open('http://salesforce.com','1414853221106','width=800,height=600,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');" value="My Popup Button></apex:commandButton>
While the settings in this javascript have the location disabled, most browsers prevent you from hiding it these days for security reasons. So it is not possible to hide the address, but you can disable modifying it. 

http://stackoverflow.com/questions/15230137/hide-bar-address-in-popup-chrome


 
k sfdck sfdc
Hi sir,
              Thank you for your replay.This my client requirement

in the popup browser window, we’ll disable the address bar so that the user doesn’t see that. (we’ll only do this after we’ve tested the call a few times and can see the parameters being passed successfully).

There is any other solution for this requirement...