Solved

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

Posted on 2008-10-10
1
582 Views
Last Modified: 2012-06-21
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?
0
Comment
Question by:snarinsky
1 Comment
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 70 total points
ID: 22693737
window.myPrint = window.print;
window.print=null

now you can use window.myPrint() to print
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now