简体   繁体   中英

mailto: links — return code from js?

Is it possible somehow to find out if an external email client has actually been opened when a user clicks on a mailto link on a web page? I need to know that in my javascript code.

The reason I need to know this, is because users might not have any email clients set up on their machines, and they would wonder why doesn't anything happen when they press on the "Send an Email" button.

Whatever happens if a mailto link is clicked is up to the clients browser. Maybe there is some hack to archive what you want, but no standard compliment solution.

JavaScript has no access to anything outside the browser. Because of this, there is no way to check the results of clicking a mailto link.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM