Dear gurus and members,
I am a newbie in programming and javascript. I created a javascript function that will ‘launch’ an application located on user’s computer. The path of the application is fixed. Therefore, I use location.href to call the exe file. However, if the user’s computer does not have the application installed, an empty page will be displayed. How can I replace the empty page with a pop up message that requests user download and install the program? The code below is the function that is called from a Flash button on my website
[CODE]
function loadRecorder() {
//load application on user’s computer
location.href = “file:///C:/Program Files/IEBAudioRecorder/AudioRecorder.exe”;
}
How can I add a code that displays a pop up message and link to download the installer if the function above fails to find the AudioRecorder.exe?
Looking forward to some replies soon
Thanks in advance,
Janice