I'm trying to create a simple link to open a mailto box to allow a user to send feedback, within a widget. My code look like this:
content: '<p>We welcome questions and comments! Send feedback to Name (<a style="color:white" class="email" title="Send feedback" href="javascript:window.location="mailto:name@domain.com" + window.location;" >name@domain.com</a>).</p>'
I also tried:
content: '<p>We welcome questions and comments! Send feedback to Sean Barbeau (<a style="color:white" class="email" title="Send feedback" href="mailto:barbeau@cutr.usf.edu" >barbeau@cutr.usf.edu</a>).</p>'
I got this syntax from here: How to write in 'mailto' body link to current page
I read how to deal with nested here: Nesting quotes in JavaScript/HTML
My problem is that in chrome this code opens a new browser page. I haven't been able to understand why it behaves this way since my knowledge in javascript is a bit limited.
I would like to understand what I did wrong and how to fix it.