Project / Support Center
Welcome, Guest. Please login or register. October 03, 2023, 05:03: AM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Bootstrap 4.0 +  |  Topic: Getting a Bootstrap Tab to go to a url link 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: Getting a Bootstrap Tab to go to a url link  (Read 4415 times)
admin
Administrator
******
Offline Offline

Posts: 238


« on: 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.
« Last Edit: February 21, 2021, 05:10: PM by admin » Report to moderator   Logged

The Unknown Webmaster
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Bootstrap 4.0 +  |  Topic: Getting a Bootstrap Tab to go to a url link « previous next »
Jump to:  


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!