$('input[type=button]').click( function() { var url = $('#url').text(); $(location).attr('href', url) });

TESTING HTML THINGS HERE