Thursday 17 April 2014

Open an external application using IE browser

We can launch a new application using ActiveXObject of the Internet Explorer. Below is the sample code -

<!DOCTYPE html>
<html>
<body>

<p>Click the button to open a new application window.</p>

<button onclick="myFunction()">Try it</button>

<script>
function myFunction()
{
 w = new ActiveXObject("WScript.Shell");
          w.run('chrome.exe');
          return true;}
</script>

</body>
</html>