Project / Support Center
Welcome, %1$s. Please login or register. February 28, 2024, 11:02: AM
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Bootstrap 4.0 +  |  : Getting a Bootstrap Tab to go to a url link 0 and 1 Guest are viewing this topic. « previous next »
: [1]
: Getting a Bootstrap Tab to go to a url link  ( 5508 )
admin
Administrator
******


: 239


« : February 20, 2021, 04:05: PM »

Spent about an hour looking for this answer, all the solutions we found required a JavaScript solution. But it doesn't, just add the red code to your <li> tag

Couldn't believe how simple this was to do.

<li  class="tab-btn" onclick="location.href='template.php?acct_id=<?php echo $_GET['acct_id']; ?>';">Social Media</li>


<a class="btn btn-success" href="https://www.google.com" target="_blank">Google[/url]

And use target="_blank" to open the link in a new tab.
« : February 21, 2021, 05:10: PM admin »  

The Unknown Webmaster
: [1]  
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Bootstrap 4.0 +  |  : Getting a Bootstrap Tab to go to a url link « previous next »
:  


Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!
Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is missing the copyright message for SMF so they can rectify the situation. Display of copyright is a legal requirement. For more information on this please visit the Simple Machines website.