Forum Moderators: phranque

Message Too Old, No Replies

How can I know when user prints a page?

         

moltar

11:52 pm on Aug 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I want to know whether user printed my page or not. Is it possible?

EliteWeb

11:56 pm on Aug 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you have the print page buttons on your website that offer a 'printer friendly' version of your page you can have that page count to database how many times its been pulled up. Normally the pages I see bring up the simple v. of the page and have the java popup to make the print page option work on windows.

Other than that I can't think of knowing when they print a page.

moltar

12:05 am on Aug 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a different situation. This page has only one version - printable :) It's a printable sign of some sort. Users can print it out. I can see that users access it, but I want to know if they actually print it. If they do print it, it means they like it. If they like it I will make more.

moltar

1:09 am on Aug 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To answer my own question, but it works only for IE 5.0+. And it still doesn't really tell if user had printed the page, but it goes off when user hits the print button.

onAfterPrint [msdn.microsoft.com] javascript event

keyplyr

6:15 am on Aug 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You can create a duplicate version of: sign1.html named: sign2.html

Then in the <HEAD> of sign1.html put this:

<link rel="alternate" media="print" href="sign2.html">

This code will switch to the alternate page when the user prints, thus your logs will reflect an accurate tally.

moltar

11:54 am on Aug 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Will this work for all the browsers?

GeorgeGG

9:59 pm on Aug 27, 2003 (gmt 0)

10+ Year Member



Works on my 98se and XP Pro :)

GGG

But not Opera 6.01