Is it possible to open a new message window with an attachment using javascript?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, at least not in a standard web browser environment.
JavaScript has no access to local files. If you aren’t talking about local files, then email clients don’t provide a web browser accessible interface for adding attachments.
(If you were talking about JScript in a WSH environment, for example, then things would probably be different, but for the sake of this answer I’m going to assume the most common use case.)