JSFiddle - React, Tailwind, and code Playground
HTML
<button id="button1"> test how href works with different browsers</button>
CSS
#button1 {
height: 70px;
width: 400px;
}
JavaScript
$('#button1')
.click(function(e){
window.location.href = '/user/login/';
})
.click(function(e){
alert('navigating now...');
window.location.href = '/user/signup/';
});