Click here to get back home

How to remove automatic printing popup from saved web page?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to remove automatic printing popup from saved web page? Wladimir Borsov 07-03-2005
Posted by Wladimir Borsov on July 3, 2005, 10:52 am
Please log in for more thread options


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/newsausgabe/newsausgabe.htm?id=16282&drucken=1

Wladimir


Posted by Benjamin Niemann on July 3, 2005, 5:19 pm
Please log in for more thread options


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/newsausgabe/newsausgabe.htm?id=16282&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/

Posted by VK on July 4, 2005, 12:26 am
Please log in for more thread options


<body ... onLoad='window.print();'>


Posted by Jeff North on July 4, 2005, 5:31 am
Please log in for more thread options


On 03 Jul 2005 10:52:49 GMT, in comp.lang.javascript wladimirb@gmx.net
(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/newsausgabe/newsausgabe.htm?id=16282&drucken=1
>|

You could:
1. disable javascript
2. locate window.print() within the file and delete it
---------------------------------------------------------------
jnorthau@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------

Posted by Dan on July 4, 2005, 9:44 am
Please log in for more thread options


Wladimir Borsov wrote:
> ...some fucking webmaster...

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

--
Dan


Similar ThreadsPosted
Authoring to assure that a web page can be saved October 31, 2004, 10:53 am
Re: Authoring to assure that a web page can be saved November 27, 2004, 6:38 am
How to remove page break? May 29, 2005, 12:53 pm
shopping cart items page with several 'remove' buttons June 16, 2006, 12:13 pm
html skip page during printing January 12, 2005, 6:49 am
Force Page-break when printing February 2, 2006, 11:44 am
How to split an HTML page for printing July 14, 2006, 8:14 am
Printing from IE help - preventing page cutoffs August 8, 2007, 10:12 am
Printing a page from ie in landscape when the browser has no menubar April 13, 2005, 3:22 am
Printing multi-page html documents September 26, 2006, 3:12 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap