Hi All,
Ive created a popup page using 'var openWindow = window.open("ne w","pop")'
And added content using openWindow.docu ment.write(" "); statements. But now
I would like to be able to print this page?
openWindow.docu ment.write("<a href='#'
onClick='self.c lose()'>Close<\/a><\/p>")
This closes the page but these lines below only print the parent page not
the popup child window.
openWindow.docu ment.write("<a href='#'
onClick='self.p rint()'>Print<\/a><\/p>")
openWindow.docu ment.write("<a href='#'
onClick='window .print()'>Print <\/a><\/p>")
Ive also been trying to write a function based on document.lastCh ild:
popupPrint()
var popUp = document.lastCh ild;
popUp.print();
}
But nothing works?
Any help appressiated i'm using IE5.5 if this has an effect?
Regards
gb
Ive created a popup page using 'var openWindow = window.open("ne w","pop")'
And added content using openWindow.docu ment.write(" "); statements. But now
I would like to be able to print this page?
openWindow.docu ment.write("<a href='#'
onClick='self.c lose()'>Close<\/a><\/p>")
This closes the page but these lines below only print the parent page not
the popup child window.
openWindow.docu ment.write("<a href='#'
onClick='self.p rint()'>Print<\/a><\/p>")
openWindow.docu ment.write("<a href='#'
onClick='window .print()'>Print <\/a><\/p>")
Ive also been trying to write a function based on document.lastCh ild:
popupPrint()
var popUp = document.lastCh ild;
popUp.print();
}
But nothing works?
Any help appressiated i'm using IE5.5 if this has an effect?
Regards
gb
Comment