I am designing a web site with CodeIgniter and I want to open some URL when user click on its buttons (URLs have to open in new tab). I use this code and it works when you want to open URL in same tab, but I want the URL to open in a new tab. I don't want to use JavaScript function too.
<button type="button" onclick="location.href='http://google.com'">Google</button>