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>
<!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>
No comments:
Post a Comment