I was wondering if anyone know how to open a progaram, from a web page link..
This web page i'm speaking of is just for me to run on my local machine, i'm using Apache, and im trying to make a web page for my little sister so when she starts up her IE she can go to one of her games or she can search the Internet.. There is a very long story why to do this but i think this can be great for her just not sure how to do that..
I was wondering if anyone know how to open a progaram, from a web page link..
This web page i'm speaking of is just for me to run on my local machine, i'm using Apache, and im trying to make a web page for my little sister so when she starts up her IE she can go to one of her games or she can search the Internet.. There is a very long story why to do this but i think this can be great for her just not sure how to do that..
It wants me to download right away how can i avoide this and just open it and run it.
You said this page runs locally, right? If you did, read on, if not, ignore the post.
Like pyro said, it's not gonna happen with it prompting for download. When it prompts for download, don't click save, click 'open'. That should run it from it's current location.
Actually, if it's local, and you play around with the security settings for the My Computer security zone you can eliminate the download message (on IE at least) and the security warning for the ActiveX component by using:
PHP Code:
function run(file) {
var ws = new ActiveXObject("WScript.Shell");
try{
ws.run(file);
} catch (Exception){
alert ("file not found");
}
}
....
<a href=# onclick="run('c:/program files/game/game.exe')" >Games</a>
Bookmarks