+ Start a Discussion

VF Page - Javascript Button

Hello everyone!


We have a custom field (path__c) with the URL of a file stored in our local server. Now we want to put a button in the layout with a very simple VF Page


<apex:page standardController="Account" >
<script type="text/javascript">
function startXL()
   var myApp = new ActiveXObject("Excel.Application");
   if (myApp != null)
     myApp.visible = true;
<input type="button" value="Open" onclick="startXL()"> 


We want to click on It and open the file, we don't want to download the file.


Any advice?


Thank you