Click here to Skip to main content
15,921,250 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,

I am developing project in asp.net mvc4. Here i have used print button.when i close the print popup window in chrome i can't redirect to another page.so what to do??

e.x:
JavaScript
$(document).ready(function () {

        $('#btn_print').click(function () {

            var tbl = $('#tbl_printbox').html();

            var w = window.open('', 'pactrak', 'width:1000,height:500');

            w.document.write(tbl);

            w.print();

            return false;

        });
    });
Posted
Updated 15-Jun-14 21:28pm
v2

1 solution

try this, may help you
after w.print add line
window.location.href = 'your page';
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900