Jump to content

Email Link Initiated Through JavaScript?


JeZxLee
 Share

Recommended Posts

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!

 

JeZxLee

16BitSoft Inc.

Video Game Design Studio

www.16BitSoft.com

(above link is to old website)

 

 

 

Here is a current screenshot of my website:

Desktop_08-08-2014a.png

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...