ios 4.2 uiwebview javascript window.print doesn´t print, not launch before and after events
问题 I´m using a uiwebview for doing an embedded web app, with the new iOS 4.2 you can print directly with objective-C, but I want to print from javascript in HTML. The problem is that I dont see the print dialog showing when clicking the button that executes window.print(). I have wrote also this code but it doesn't get events. function beforePrint () { alert("before rec"); } function afterPrint () { alert("after rec"); } function checks(){ alert("Activating checks"); window.onbeforeprint =