Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2008-10-10
1
587 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

838 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