Suppress Page # and url

Does anyone know how to suppress the "Page number indicator" at the top of a web page print and the url at the bottom in ASP?

                          Page 1 of 4
PAGE

http://mydomain/page.asp
LVL 4
RichWAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
neoabacusConnect With a Mentor Commented:
yes I know that for ie5 only i mentioned that in my above comment...
0
 
robbertCommented:
Yes. Tailor IE, and distribute it.

http://www.microsoft.com/Windows/ieak/en/default.asp
0
 
mgfranzCommented:
Other than that, your only other recourse is the print properties of the printer.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
neoabacusCommented:
you could change the values for title before print then change back after printing... at least in ie 5

see http://msdn.microsoft.com/workshop/author/script/dhtmlprint.asp


which has this sample script...

// This example shows a page that modifies its title before printing
// and then resets it to its original value after printing.
var originalTitle;

<script for=window event=onbeforeprint>
  originalTitle = document.title;
  document.title = document.title + " - by Captain"
</script>

<script for=window event=onafterprint>
  document.title = originalTitle;
</script>



or you could try scriptx ativex control
see http://www.meadroid.com/scriptx/
0
 
RichWAuthor Commented:
neoabacus

Post an answer and I'll give you the points.  There are methods there for the URL print, but I didn't see anything about Page#s.

Thanks again.

Rich
0
 
mgfranzCommented:
You know that this is a IE5 fix only, IE4 has no known way to disable the property, and Netscape will probably never...
0
 
RichWAuthor Commented:
Thanks everyone!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.