Click to See Complete Forum and Search --> : calling window.print() from my function


seemab_is_in
July 22nd, 2002, 05:52 PM
i want to call my function say "myprint()" on clicking a button named print........
now in this func-myprint...i want to call window.print() from this funciton......
i want to track down whether the user clicks "PRINT" or "CANCEL" in the print dialog box which appears when window.print() is called

does window.print() returns some value regarding "PRINT" or "CANCEL" button clicks??

please tell me how can i do this stuff

seemab_is_in
July 24th, 2002, 12:55 PM
well this is a reply to myself
well you can use the onbeforeprint and onafterprint events ....
bye
best of luck
from
seemab to seemab