Link to home
Start Free TrialLog in
Avatar of TLTEO
TLTEO

asked on

double function

Hi

I need to put an image in a html file.

By clicking this image, it will run 2 functions.
One to call a program , and two, to cloce this browser and open a new one.

How can I do this??

I am not using servlets (which can solve this problem I thk), and I am using only simple html context.

Is tyhere a way to use java script (onclick)?
ASKER CERTIFIED SOLUTION
Avatar of snakehollywood
snakehollywood

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TLTEO
TLTEO

ASKER

is it able to call read a file from C:\ ,  would there be any seurity breach ??
Yes you can read an image from a local drive, but as no-one else will have the image on their local system they will only see a broken image.

Other than that, you cannot access files on a client machine.
The most you could do is create a link to the path of a know program, say notepad or word, where you expect it to be in a particular place on most peoples machine.
TLTEO,

These questions are still open and our records show you logged in recently. Please resolve them appropriately as soon as possible. Continued disregard of your open questions will result in the force/acceptance of a comment as an answer; other actions affecting your account may also be taken. I will revisit these questions in approximately seven (7) days.
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20177485
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20178630
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20177653
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20235670
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20177859
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20250974
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20148640

EXPERTS: Please leave your thoughts on this question here.

Thanks,

Netminder
Community Support Moderator
Experts Exchange
Force/accepted by

Netminder
Community Support Moderator
Experts Exchange