I have a page that calls window.print(); at the bottom of the page. I have no way of accessing the code around window.print(); Its generated by the server and I can\'t tou
You should be able to override it like so...
var _print = window.print; window.print = function() { alert("Hi!"); // do stuff _print(); }