I've even done some research here on stackoverflow about creating a back button. The situation is that I click on a dynamic record to edit, then I have the option to cancel (which is to go back) in IEca and FF works, but in chrome we have problem.
I have tried other alternatives, but nothing worked does not work.
<button type="submit" name="voltar" value="voltar" id="voltar" class="btn btn-default" style="margin-left: 30px">Cancelar</button>
$('#voltar').click(function() {
history.go(-1);
return false;
});
I've tried something straight inline also in JS, but it did not! Any solution?
SOLUTION: Apparently what I did to make sure was just taking the jquery that was at the bottom of the page and play at the beginning of it. You will understand.