tpham
05-28-2003, 04:29 AM
@Candrias77
Hi Candrias77 or anyone that can help me,
Would you know how I would be able to transfer the content of the first page to the seond page so that I would print the second page. Your idea was to have two pages...I am trying to avoid this becaouse if would take more time to retrieve data from the database etc. I need this for Netscape4...the code below is what I use for IE4+ and it works fine but not with NS4..
<script language="javascript">
function PageOnLoad() {
document.all.item('test1').innerHTML = window.opener.document.all.item('idBody').outerHTML;
window.print();
window.close();
}
</script>
Hi Candrias77 or anyone that can help me,
Would you know how I would be able to transfer the content of the first page to the seond page so that I would print the second page. Your idea was to have two pages...I am trying to avoid this becaouse if would take more time to retrieve data from the database etc. I need this for Netscape4...the code below is what I use for IE4+ and it works fine but not with NS4..
<script language="javascript">
function PageOnLoad() {
document.all.item('test1').innerHTML = window.opener.document.all.item('idBody').outerHTML;
window.print();
window.close();
}
</script>