How to block window.print() while using IFrames?

I have a page in vb that uses two IFrames to display two different web pages.

Both IFrame source pages have window.print() JavaScript function.

So when my page with IFrames loads I get 2 Print Dialogs.

How can I get rid of these "Print" popups on my page with IFrames?
snarinskyAsked:
Who is Participating?
 
Michel PlungjanConnect With a Mentor IT ExpertCommented:
window.myPrint = window.print;
window.print=null

now you can use window.myPrint() to print
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.