BassMan Well-known member Feb 24, 2019 #1 Hi, how can I open div data-href in a new tab? <div data-href="some_link"...... Last edited: Feb 24, 2019
SyTry Well-known member Feb 24, 2019 #2 Hello, Maybe target="_blank" ? See : https://xenforo.com/community/threads/custom-navigation.139631/post-1205423 Regards, SyTry
Hello, Maybe target="_blank" ? See : https://xenforo.com/community/threads/custom-navigation.139631/post-1205423 Regards, SyTry
Sunka Well-known member Feb 24, 2019 #4 It should work <div>test <a href="https://www.google.com" target="_blank" rel="noopener">link</a></div>
It should work <div>test <a href="https://www.google.com" target="_blank" rel="noopener">link</a></div>
BassMan Well-known member Feb 24, 2019 #5 No, it's something like this: <div class="menu" data-menu="menu" aria-hidden="true" data-href="{{ link('some_link) }}">...... I want links in that menu to open in new tab.
No, it's something like this: <div class="menu" data-menu="menu" aria-hidden="true" data-href="{{ link('some_link) }}">...... I want links in that menu to open in new tab.