Hi.
on html img tag click event of my html page(details.html) am calling on function for opening a new window.
function printLineCard() {
var pwin = window.open(‘PDF.htm’, ‘print_content’, ‘width=800px,height=800px;resize=no,toolbar=no,scrollbars=yes,status,menubar=no,location=no’);
}
And in the ‘PDF.htm’ in body onload am calling on efunction for print.
eg:
<head>
<title >Print</title>
<script type=”text/javascript” language=”javascript”>
function printIt() {
window.print();
}
</script>
<body onload=”printIt()”>…..
My problem is when am loading details.html itself am getting the print dialog box. Actually i want it when i load the PDF.html only..
Can anyone help?
Thanks Arathi