i have got the solution
function openWindow(printURL) {
var newWin = window.open(printURL, 'PrintABC', 'top=100,left=300,menubar=no,toolbar=no,location=no,resizable=no,height=600,width=850,status=no,scrollbars=yes,maximize=null,resizable=0,titlebar=no');
if (newWin != null) {
newWin.focus();
void (0);
}
}