Bootstrap (how to make the menu bar assigning values to the buttons..ex .: I created the "Home" button, how can I assign a value to it when I access it I go to the start button page ...)
Bootstrap (how to make the menu bar assigning values to the buttons..ex .: I created the "Home" button, how can I assign a value to it when I access it I go to the start button page ...)
The btn
and btn-*
classes can be used in buttons ( <button>
) and links ( <a>
):
You can create for example:
<a href="#"><button type="button" class="btn btn-default">Inicio</button></a>
You can also see examples of using links and buttons here for example
http://getbootstrap.com/components/#navbar
Another way is using javascript or jquery and onclicked.
You can also create a function in jquery that calls your page and the button to call this function like this:
Jquery:
function chamaInicio(){
$(window.document.location).attr('href','url_da_sua_pagina_completo_aqui');
}
And here's the call on your button
<input id="btnChamaInicio" type="button" class="btn btn-success col-md-1" value="Inicio" onclick=" return chamaInicio();" />
Test and post the result.