|
| ||||||||||
| Tags: function, html |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Install Using OnClick Function
Could you tell me if it is possible to launch the execution of a program using the OnClick event? I would like to when I click a button that installs the program The program is located in a folder in local programs |
|
#2
| ||||
| ||||
| Re: Install Using OnClick Function
Hello , You'll get a security warning but you can do it: Quote:
__________________ The FIFA Manager 2009 PC Game |
|
#3
| ||||
| ||||
| Re: Install Using OnClick Function
Hey , Check This Link it might Be helpful http://www.microsoft.com/technet/scr...5/hey1031.mspx |
|
#4
| ||||
| ||||
| Re: Install Using OnClick Function
Your should use ShellExecute rather than execl. I think the exe* functions were designed for windows older than Windows 95. To use ShellExecute do #include <shellapi.h> ShellExecute(NULL, "open", "MyProgram", NULL, NULL, SW_SHOW); The 3rd parameter is any command line arguments your program takes.
__________________ Grand Theft Auto 4 PC Video Game |
|
#5
| ||||
| ||||
| Re: Install Using OnClick Function
In javascript, it is not possible to launch the execution of commands or programs when it is played on a browser. This is for security reasons. As against it is quite possible to simulate the behavior of a link when you click on a button, here's an example: Code: <html> <head> </ head> <body> <a href="./FileZilla_Server-0_9_25.exe"> click </ a> <input type="button" value="clic" onClick="window.location.href='./FileZilla_Server-0_9_25.exe';"> </ body> </ html> When you click on the link or button your browser will offer you to run or download the executable. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Install Using OnClick Function" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Button onclick event href="#" onclick=" | Cornnelius | Software Development | 6 | 14-05-2010 11:20 PM |
| using href vs. onclick to call javascript function | Kalyug | Software Development | 6 | 12-05-2010 10:09 AM |
| Onclick event with DIV tag | ISAIAH | Software Development | 5 | 03-03-2010 03:45 PM |
| Retrieve a value with onclick | Sujit15 | Software Development | 5 | 05-01-2009 02:47 PM |
| Onclick and Firefox3 | Coolestman | Software Development | 3 | 02-09-2008 02:46 PM |