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
Steve Gilbert 13Steve Gilbert 13 

using a custom button to open a browser

I am trying to create a button that will open a word doc from the local server. What I was told is that we would fist need it to open the browser and then to open the file... a bit lost on this or even if it is doable.  Thanks
Best Answer chosen by Steve Gilbert 13
Navin SoniNavin Soni
Hi Steve Gilbert,

Try with this:
 
window.open('https://c.cs8.visual.force.com/apex/Mobiles?id={!Campaign.Id}','_blank');

Thank You,
Navin Soni

All Answers

GarryPGarryP
Is this what you are tyrng to within Salesforce instances?
Are you trying to create a button in salesforce VF page (ex) which user will press and selects the file that should be opened in browser?
Navin SoniNavin Soni
Hi Steve Gilbert,

Try with this:
 
window.open('https://c.cs8.visual.force.com/apex/Mobiles?id={!Campaign.Id}','_blank');

Thank You,
Navin Soni
This was selected as the best answer