How to give link from button in twitter bootstrap

I have created a button using

<button type="button" class="btn btn-success btn-lg ">Register</button>

How could I give a link to another page when the button is pressed?

Answers


Use a anchor instead, and you can still style it as a button..

<a href="/page.html" class="btn btn-success btn-lg">Register</a>

Bootply: http://www.bootply.com/99320


Need Your Help

Custom URL routes helper

ruby-on-rails ruby ruby-on-rails-4

It seems there is no URL helper generated automatically when you apply custom.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.