title: How to code a button in HTML to open a html page in Notepad
body: <p>Hello I have a server inventory with me. But we wanted to make it easy by including a button which upon clicking should open our main html page in notepad so that anyone without a coding knowledge can open it and add a new server or make any changes easily. Is it possible? I have tried many things but failed. help is very much appreciated. To put it in a simple way, I want to create a button in my html page which should open my html page in notepad but not in browser.</p>
  
  <pre><code>   &lt;html&gt;
      &lt;head&gt;
          &lt;script type="text/javascript"&gt;
          function runProgram()
          {
              var shell = new ActiveXObject("WScript.Shell");                 
              var notepad = "C:\Windows\notepad.exe" /e /s /u /wl /wr /maximize";
              var file = "file:\\\10.35.114.123\e$\Inventory\Somos\Home1.html";
              shell.Run(notepad+file);
          }
          &lt;/script&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;a href="javascript:runProgram()"&gt;Run program&lt;/a&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>