Forum Discussion
DonnaKane
10 years agoCommunity Member
Can someone please look at my javascript?
Hi all! I've been reading and learning from these discussions for a long time. Without even knowing it, your help has saved me on many occasions! Thanks!
I've used Stephanie's javascript in a ...
MikeTobias
10 years agoCommunity Member
Try changing all of the double quotes to single quotes in your mailto variable string. That seemed to do the trick here. Maybe you can't mix single and double quotes in js?
Also, try using window.location.href=mailto_link; instead of win=window.open(mailto_link,'emailWin'); as that doesn't open up an extra empty browser tab. Just test and make sure that works for your environment.
- DonnaKane10 years agoCommunity Member
Mike,
Thanks so much for the input! We tried just about everything, then we realized that it WAS an issue with the quotation marks. I really appreciate you taking the time to help!