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

How can I avoid opening a new browser window when my VisualForce backed button is pressed?

Hello I currently have a button that executes a VF page that calls a extension controller on the Case Object. This button provides the Case history for this Case Id when a user is logged in via Customer Portal. Everything works fine except..... when the button is pressed a new browser window is opened. When I click the tab to return to the case it returns to the newly opened window not the original window. If the user presses this button several times the users is left with several windows open.


Is there some parameter/argument ( in either the VF page or the controller extension)  that I can use that when VP button is pressed it uses the same browser window? 



Best Answer chosen by Admin (Salesforce Developers) 
OK.. I think I forgot to use the correct definition when the button was defined in Custom Buttons. I think all I need to do is not select 'The Open In New Window' option.