Good evening, I write this time because I am trying to print a div
and then redirect me to the main page, but the problem is that it does not redirect me, I try in firefox
and that happens to me, it's as if I just made an action print nothing more, how could I make it work for me?
This is the code I am using, some idea to solve this problem:
$(document).on('ready',function (e){
$(".testbutton").click(function () {
$("div#myPrintArea").printArea();
setTimeout(function(){
$(location).attr('href','/inicio/');
},2000);
});
});