JeZxLee Posted August 8, 2014 Share Posted August 8, 2014 Email Link Initiated Through JavaScript? Hi, I am developing a new website using HTML5 & JavaScript. How can I add an email link to the website initiated through JavaScript?I already have the click on the screen working, just need the JS code to open the email address "[email protected]".(if possible I would want the above email to have "Email From Visitor Of 16BitSoft Website!" subject line) Thanks for your help! JeZxLee16BitSoft Inc.Video Game Design Studiowww.16BitSoft.com(above link is to old website) Here is a current screenshot of my website: Quote Link to comment Share on other sites More sharing options...
JeZxLee Posted August 8, 2014 Author Share Posted August 8, 2014 Hi, I found this on Google:window.open('mailto:[email protected]?subject=Email From Visitor Of 16BitSoft Website!');But Mozilla Firefox Internet browser blocks it as it thinks it's a pop up. How can I fix the above JavaScript code so that it is not detected as a bad pop up? Thanks! JeZxLee Quote Link to comment Share on other sites More sharing options...
JeZxLee Posted August 8, 2014 Author Share Posted August 8, 2014 Hi, I got it working! Here is the new JavaScript code:window.open('mailto:[email protected]?subject=Email From Visitor Of 16BitSoft Website!',"_self");Thanks! JeZxLee Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.