First of all I started with the following:
however this opens the XLS file in a web browser.
<a href="\\SERVER-01\folder\file.xls" target="_blank">
So I then created a function called "RunFile"
so when I do the following it works fine:
However my problem is that the "G" drive is mapped. So when I try:
<a href="#" onclick="RunFile('G:/Server/folder/file.xls');">Click me</a>
it does not work. There is nothing wrong with the mapping so I am assuming I must have to use the "file://" prefix in some manner? I have tried various alternative to no avail.
<a href="#" onclick="RunFile('\\SERVER-01\folder\file.xls');">Click me</a>