HTML Script – “ Run Program File ‘if cannot find’ Run URL ”
I’ve just started learning HTML. I’ve tried to write some script, its not working. Could anyone please help me correct it. Thank you.
Program File: HomeChannelTV.exe
URL:
www.homechannel.tv/welcome
SCRIPT
<html>
<head>
<script type="text/javascript" language="javascript">
{
function Runfile() {
WshShell = new ActiveXObject("WScript.Shell")
WshShell.Run("C:\Program Files\HomeChannelTV.exe", 1, false);
}
<else>
<meta http-equiv="refresh" content="2;
URL=http://www.homechannel.tv/welcome.htm">
<meta name="keywords" content="automatic redirection">
}
</script>
</head>
<body>
</body>
</html>