I have overriden the standard Edit button with a vf page now I would like open the page in a new tab. How can I do this?

VF Code:

<apex:page standardController="Notes__c" extensions="Notes" action="{!Redir}">
  • 2
    you can use javascript to open in new tab and redirect from javasript instead of action attribute
    – Himanshu
    Mar 2, 2016 at 16:40

1 Answer 1


Overriding standard buttons with Visualforce pages would not help in opening pages in new tab.

You would have to create new custom button, with

  • Display Type: Detail page button
  • Behaviour: Execute Javascript

and you could put some code like this:

window.open("../apex/yourCustomPage?id={! Account.Id }", "_blank")

Modify the page layouts required and replace standard edit button with custom one.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .