web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Hide "View in Browser" while viewing Email in Browser

(0) ShareShare
ReportReport
Posted on by 87

Hello community,


I have integrated the "View in Browser" functionality in my marketing mails.

The recipient can now view the mail in the browser if the mail is not displayed correctly. But the browser also shows the "View in Browser", which doesn't make any sense to me. The contact is already in his browser.

Is there a way to hide this text if the contact has already opened the email in the browser?

Thank you and regards

Ferdinand 

I have the same question (0)
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at

    Hi Ferdinand,

    Unfortunately, you can't hide or show it based on email opening ways if you have added it to the email.

    In Marketing emails, we can add advanced logical processing to email designs:

    Conditional (if-then-else) statements display content depending on whether one or more conditional expressions resolve to true or false. 

    But we can't get email opening ways through it.

    https://learn.microsoft.com/en-us/dynamics365/marketing/dynamic-email-content 

  • Verified answer
    Ferdinand Ganter Profile Picture
    87 on at

    Hi there Leah,

    thanks for your quick answer. Maybe I thought about a small javascript, which will load when Browser is open and hide the Text fiel.

    like this:

    if (navigator.userAgent.indexOf("Outlook") > -1) {

     // The user is using Outlook

    } else {

     // The user is not using Outlook

     document.getElementById("WebbrowserLink").style.display = "none";

    }

    But in my mind, JS is not Loading in E-Mail but in Browser so maybe i only need the   document.getElementById("WebbrowserLink").style.display = "none"; or is there anything I should mind?

    Thanks

    Best Regards

    Ferdinand

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans