Reputation: 374
Im trying to add a link to an element in the same page:
<a href="#someElement">
.
.
.
<div id="someElement">
which works fine. but when the page is being send in mail message, the link is being open in a new tab in the browser, and doesn't simply jump to the element in the html mail message. I tried with the quotes (of the id name) and without. I tried to give a full path to the element, nothing works.
any suggestion?
thanks.
Upvotes: 1
Views: 5497
Reputation: 10092
You can use anchor
<a href="#someElement">Link to your element</a>
to link to id
<div id="someElement">
or name
<a name="someElement">...</a>
it's possible but not working everywhere http://www.campaignmonitor.com/blog/post/3322/the-trouble-with-anchor-links-in-email-newsletters/
Upvotes: 2