Open link from tiles in a new window

General issues related to the use of Metro 4
Post Reply
nebukadnezar
Posts: 2
Joined: Mon May 20, 2019 10:32 am
Status: Offline

Open link from tiles in a new window

Post by nebukadnezar » Mon May 20, 2019 12:10 pm

hi, I want to create a simple welcome start page with few buttons to access some other devices like NAS; router etc... How can I configure the tiles to open the link in a new window ?

<a href="https://xxxxxxxxx:7070/RDWeb" data-role="tile" class="bg-indigo fg-white">
<span class="mif-server icon"></span>
<span class="branding-bar">RDG</span>
<span class="badge-bottom">30</span>
</a>

Thank you
Nebu

User avatar
olton
Site Admin
Posts: 206
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Mon May 20, 2019 12:25 pm

add attribute target="_blank"

nebukadnezar
Posts: 2
Joined: Mon May 20, 2019 10:32 am
Status: Offline

Post by nebukadnezar » Mon May 20, 2019 1:15 pm

Hi Olton, sorry I'm a newbie in html coding ;0)
many thanks I did first
<a href="https://xxxxxxxxx:7070/RDWeb" target="_blank">xxxxxxxxx:7070/RDWeb</a> data-role="tile" class="bg-indigo fg-white">
which didn't work, now with your tip:
<a href="https://xxxxxxxxx:7070/RDWeb" target="_blank" data-role="tile" class="bg-indigo fg-white">
it works like a charm.
Regards
Nebu

Post Reply