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