adi ohaion
adi ohaion

Reputation: 374

href to an element in the same page in HTML Mail

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

Answers (1)

baptme
baptme

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

Related Questions