Extra popup window using mailto in Chrome

Robert Lovic
Robert Lovic used Ask the Experts™
on
I just joined experts exchange today so please let me know if I post something incorrectly.  I have an html page that contains the following javascript:

window.open("mailto:xxx.yyy.com");

My default email program is Outlook 2016.  When I execute this code on IE11, Firefox, or Edge it correctly pops up a blank email window from Outlook 2016.  When I execute this code in Chrome, I get the correct blank email window from Outlook 2016 but I also get another blank browser window as well which I manually have to close.  Is there any workaround to not have that extra blank browser window pop up in Chrome.  Thank you for any replies.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Distinguished Expert 2018
Commented:
Not a Chrome person and have been out of the web dev game for a while but since I'm here:
Try setting the target to _self:
window.open("mailto:xxx.yyy.com","_self");


https://www.w3schools.com/jsref/met_win_open.asp
Robert LovicDirector of IT

Author

Commented:
Thank you very much slightwv!  That was the answer!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial