$(document).ready(function(){ $('#email').click(function (){ url='/formulario'; $(location).attr('href',url); }); });