The following program will launch the Notepad by Pressing button in web browser.This works in Internet Explorer only.

<html>
<head>
<script language="JavaScript" type="text/javascript">
function runReport()
{
var rep = new ActiveXObject("WScript.Shell");
rep.Run("C:\\Windows\\system32\\notepad.exe", 1, true);
}

</script>
</head>
<body>
<h1>Run a Program</h1>
This script launch the file >> c:\windows\system32\notepad.exe<p>
<button onclick="runReport()">Run Windows NotePad</button>
</body>
</html>