If the above code works, and if your crome.exe is in user's appdata folder, then you will need to find dynamic location of AppData folder for every user. =, default location is in user's appdata folder. (Replace with current user name), best way is to find the crome.exe location at your dev machine, and paste the path here. Use 1st part code in your button event handler method. This is server side code, you should write in your C# code behind method for Click event of Link Button. I can't place a hyperlink in the body of this question b/c my account is not yet verified: /questions/132858/format-link-to-open-in-desired-browser-chrome Can anyone give me a push in the right direction?įYI: Here's the link to the other forum where this question was asked.
My issue is that I don't know much code, where to place this code, or how to make it execute when a link is clicked. However, if this customization is absolutely necessary,you can develop a server side web part in which you can generate a link.Clicking on which will executeĬhrome.exe process and open the link in browser.Ĭode snippet to call Chrome.exe would be as follows: OOTB, SharePoint only opens in browser which is set as default. Someone asked this question on another forum and was given this answer: Ideally, a user would click the link and it would open in Chrome, no matter what his/her default browser is. I've placed a link to this system in a library on our site - however, it will open in IE if that happens to be your default browser.
We have an online system that works best in Chrome. Is it possible to force a link within a SharePoint site to open in a certain browser?