I needed to disable a site from executing body onload event. Onload code actually opened the print dialog box and closed the window when the print dialog is closed. However I needed to see how the page looks like in the browser without actually printing.

Greasemonkey came to rescue. I just created a very simple script and added


document.body.setAttribute('onload',''); 

Hope this helps somebody out there.

References: Google Group Discussion

Leave a Reply

Nonprofit_banner_horizontal_banner_3991