473,796 Members | 2,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to remove automatic printing popup from saved web page?

Occasionally I want to save web pages (with the IE) without the surrounding frills and banners.
For that I click on the link "print" and a printer friendly version web page is prepared and popped up.
Most of the time this works well. However sometimes some fucking webmaster insert an automatic
printer dialog popup which forces me to click on the "cancel" button first.

Ok, assume I saved such a page on my hard disc. Is there a way to remove this printer dialog popup
at least afterwards (in order to prevent other popups in the future)?

Which HTML (or maybe javascript statements) do I have to remove?

As an example look at this web page:

http://focus.msn.de/hps/fol/newsausg...6282&drucken=1

Wladimir

Jul 24 '05 #1
5 5445
Wladimir Borsov wrote:
Occasionally I want to save web pages (with the IE) without the
surrounding frills and banners. For that I click on the link "print" and a
printer friendly version web page is prepared and popped up. Most of the
time this works well. However sometimes some fucking webmaster insert an
automatic printer dialog popup which forces me to click on the "cancel"
button first.

Ok, assume I saved such a page on my hard disc. Is there a way to remove
this printer dialog popup at least afterwards (in order to prevent other
popups in the future)?

Which HTML (or maybe javascript statements) do I have to remove?

As an example look at this web page:

http://focus.msn.de/hps/fol/newsausg...6282&drucken=1


Simple strip every JavaScript stuff from the page: every
<script>...</script> section and every on* attribute. It should be possible
to create a macro in a good editor that will do this on a single key press
or write some regular expression (if you prefer commandline tools like
'sed').

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Jul 24 '05 #2
On 03 Jul 2005 10:52:49 GMT, in comp.lang.javas cript wl*******@gmx.n et
(Wladimir Borsov) wrote:
| Occasionally I want to save web pages (with the IE) without the surrounding frills and banners.
| For that I click on the link "print" and a printer friendly version web page is prepared and popped up.
| Most of the time this works well. However sometimes some fucking webmaster insert an automatic
| printer dialog popup which forces me to click on the "cancel" button first.
|
| Ok, assume I saved such a page on my hard disc. Is there a way to remove this printer dialog popup
| at least afterwards (in order to prevent other popups in the future)?
|
| Which HTML (or maybe javascript statements) do I have to remove?
|
| As an example look at this web page:
|
| http://focus.msn.de/hps/fol/newsausg...6282&drucken=1
|


You could:
1. disable javascript
2. locate window.print() within the file and delete it
---------------------------------------------------------------
jn******@yourpa ntsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Jul 24 '05 #3
VK
<body ... onLoad='window. print();'>

Jul 24 '05 #4
Dan
Wladimir Borsov wrote:
...some fucking webmaster...


I'm not sure why the webmaster's sex life has any relevance to this
issue. :-)

--
Dan

Jul 24 '05 #5
VK
<body onload="window. print()">

Remove onload="window. print()"

Jul 24 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
10441
by: gb | last post by:
Hi All, Ive created a popup page using 'var openWindow = window.open("new","pop")' And added content using openWindow.document.write(" "); statements. But now I would like to be able to print this page? openWindow.document.write("<a href='#' onClick='self.close()'>Close<\/a><\/p>")
3
3233
by: gb | last post by:
Hi, How do you print a dynamically produced popup. Everything I try such as self.print() prints out the original or parent page. Banging my head against a wall time? Can the popup object be named and referenced through the DOM. The popup object has been named in the window.open() method. But all references to this fail to print the current window.
5
10154
by: Patrick De Ridder | last post by:
How can I turn what I want to print 90 degrees using the logic below? Please tell me the code with which to make the modification. Many thanks, Patrick. using System.ComponentModel; using System.Drawing; using System.Drawing.Printing; using System.IO;
1
1084
by: luna_s | last post by:
i have a popup box in a form a user can enter data in this popup box and hit save - how can i refresh the main page with the new data ? popup is javascript - the datas saved to a database the main form connects to the same database - i can get it to appear once i search again on the same id number thanks mark
4
2766
by: Earl Teigrob | last post by:
I am thinking about using a popup window to edit settings that will affect parent asp.net page. The data that is changed in the popup window will be saved to the datastore that is loaded and displayed by the parent page. In order to refresh the parent page, I would like to raise an event in the popup (child) page that is subscribed to by the parent so that I can rebind the data in the parent page once the data in the child window data is...
2
1124
by: Chris | last post by:
Hi, I am loading a popup from my parent page when an image is clicked. How can I now pass a value from a textbox to the popup page. Currently this is how I am calling the popup from parent page <A href="javascript:GetInfo(txtRetVal', true)"><IMG height="16" src="images/lookup.gif" width="16" align="middle" border="0"></A> txtRetVal is the name of the textbox on the parent page that accepts the value returned from the popup.
1
1221
by: Jos Roijakkers | last post by:
I am writing a program in Visual Studio 2005 (VB) that can print scanned images (saved as jpg-files). The printing is done by the following code: Private Sub pdoc_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument.PrintPage Dim i As Integer Dim intPrintAreaHeight, intPrintAreaWidth, marginLeft, marginTop As Int32 With PrintDocument.DefaultPageSettings
2
3592
by: mac | last post by:
I have a requirement to open a popup window in button click event(after server processing). The way i use is i call Page.RegisterClientScriptBlock to register script for opening popup in the button click event and it works fine. The only problem is when user refreshes the page, the popup opens because the script is already there in the page and i want to avoid it. Is there any way to open a popup without registering the script or is there a...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10465
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10242
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.