<apex:page>
<apex:commandLink action="{!doRedirect}" value="Save" id="theCommandLink"/>
</apex:page>
Public Class Controler1 {
Public pageReference doRedirect(){
PageReference opportunityPage;
//add your logic
opportunityPage = new PageReference('/' + opp.id); // here I am redirecting this one to opportuntiy detail page.
return pageRefrence;
}
}
If you want to achieve that through javascript then you can try with below snippet of code :-
Hi Abi,
If you want to redirect page through custom controler then you can do it with help of PageReference. for more detail you can follow this blog (http://blog.jeffdouglas.com/2008/11/14/redirecting-users-to-different-visualforce-pages/)
If you want to achieve that through javascript then you can try with below snippet of code :-
Please let me know if you need more informaiton on this.
Thanks,
Keyur Modi