redirigir después de imprimir JavaScript

window.print();
window.onafterprint = function(event) {
    window.location.href = 'index.php'
};
Horrible Hyena