Using HTML embed but prevent new tab from opening

n_davis
Participant V

I’m created embedded html links, but Looker has middle clicks of the mouse open the links in a new tab. I don’t see any html that is allowed in Looker that would accommodate preventing this. Does anybody have a workaround?

Example: User clicks the html button to open an embed dashboard in the same iframe, but if the user middle clicks the mouse it’ll open in the Looker UI instead of loading in the same iframe. Is there a way to fix this without linking the dashboard to a new iframe with every click?

    html: <nav style="font-size: 28px; padding: 5px 10px 0 10px; height: 60px; background-color: #470A68;">

<a style="padding: 5px 10px 0 10px; border-bottom: solid 1px #fff; float: left; line-height: 40px;color: #fff;" href="/embed/dashboards-next/[slug]&embed_domain={{_user_attributes['domain']}}&_theme=%7B%22show_filters_bar%22%3Afalse%7D" target="_self">Overview</a>

<a style="padding: 5px 10px 0 10px; border-top: solid 1px #fff; border-left: solid 1px #fff; border-right: solid 1px #fff; border-radius: 5px 5px 0 0; float: left; line-height: 40px; font-weight: bold;color: #fff;" href="/embed/dashboards-next/[slug]&embed_domain={{_user_attributes['domain']}}&_theme=%7B%22show_filters_bar%22%3Afalse%7D" target="_self">Finance</a>

</nav>;;
0 0 317
0 REPLIES 0
Top Labels in this Space
Top Solution Authors