when i insert an image banner on my page, i want to link the banner to an executable file on the local machine. how can i do it so that the executable runs in a new tab or the current page?
When pointing to a file on a local machine, it looks slightly different than the format within a web server.
For example, if you were to point to dog.png in an images file on a webserver you would use :
<href="/images/dog.png"> link text</a>
But to point to a file in a specific place on the local machine, it would need to be set up as:
<href="file:///c:\folder\folder\dog.png>
You can see it is a bit different. You will need to know that the user has the file in the exact path you expect it or it will not find it.
Also, executable files are not opened in browser tabs, but run on the users desktop itself. This is for security reasons and no browser has any plugin to run them. Some files such as video files may run through a plugin in a browser window, but executables do not. The best you can hope for is when you click on the link, the browser offers to download the file, which would not help you if it is already located on the local machine.
When pointing to a file on a local machine, it looks slightly different than the format within a web server.
For example, if you were to point to dog.png in an images file on a webserver you would use :
<href="/images/dog.png"> link text</a>
But to point to a file in a specific place on the local machine, it would need to be set up as:
<href="file:///c:\folder\folder\dog.png>
You can see it is a bit different. You will need to know that the user has the file in the exact path you expect it or it will not find it.
Also, executable files are not opened in browser tabs, but run on the users desktop itself. This is for security reasons and no browser has any plugin to run them. Some files such as video files may run through a plugin in a browser window, but executables do not. The best you can hope for is when you click on the link, the browser offers to download the file, which would not help you if it is already located on the local machine.
Kindest Regards,
Scott M
Kindest Regards,
Scott M