I'm attempting to have a simple webpage where upon clicking a button, it will open up an excel worksheet that is on my desktop... Is my file path wrong? Or is it the wrong function call?
I've already tried a simple .open and now .location...
<!DOCTYPE html> <html> <body> <p>This button will open Excel Sheet:</p> <button type="button" onclick="myFunction()">This goes to the Excel Doc</button> <script> function myFunction() { window.location("C:\Users\jamiller\Desktop\spreadsheet.xlsx"); } </script> </body> </html> The button doesn't do anything, it should open the excel file