Copy link to clipboard
Copied
Dear people,
I try to open a pdf file from JavaScript via browser, but I am failing with the correct syntax.
window.location.replace("acrobat://C:/path/to/file.pdf") opens the Acrobat Reader correctly but it always claims that the syntax is wrong. Initially I try to open a file from SharePoint via Webdav but that seems to be the second step. The simple example from above does not work. What is the correct syntax? I searched the whole internet for an answer but was not succesfull. Help is very much appreciated!
Have something to add?