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
Unisoft PhucVVUnisoft PhucVV 

Change URL in VisualForce Page.

User-added image

User-added image
I created a Page, after I add it in Tabs.

When I click in this Tabs. It's have URL : https://c.cs6.visual.force.com/apex/BulkEmailSender?sfdc.tabName=01rN0000000DCvk.

I want to add a parameter Account ID in this Page when click in Tabs Page in menu ( by code not hander). How I can do it?
Prabhat Kumar12Prabhat Kumar12
You can do this by using Javascript. Create a function in You VF page and call it when page loads something like this.
 
// Function to pass Account id in URL
function myFunction() {

location.href = "https://c.ap1.visual.force.com/apex/Pupup?sfdc.tabName=01r90000000h68Q?id=accid";


}
//Function to call on page load.
window.onload = function() {
  myFunction()
  };
User-added image