CodeIgniter Forums
trying to open a new tab in the browser - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: trying to open a new tab in the browser (/showthread.php?tid=77093)

Pages: 1 2


RE: trying to open a new tab in the browser - InsiteFX - 07-30-2020

Something like this.

Code:
<a class="btn btn-primary btn-lg" onclick="location.href='https://patents.google.com/'" target="_blank" role="button">Open Google Patents</a>



RE: trying to open a new tab in the browser - richb201 - 07-30-2020

This is what finally worked.

<p>Find patent and take an image: <a href="https://patents.google.com" target="_blank">Open Google Patents</a></p>