Print specific info

C

Charl

Hi All,

I am designing printer friendly page for my website and would like to
know if there is a way to add a next and print button to the web page
but it should not show on my print out.

Thanks
 
A

Arjen

Charl schreef:
Hi All,

I am designing printer friendly page for my website and would like to
know if there is a way to add a next and print button to the web page
but it should not show on my print out.

Thanks

Create a stylesheet for the printer.
<link rel="stylesheet" type="text/css" href="print.css" media="print" />

Use display:none; for unwanted objects
 
T

The Eclectic Electric

Charl said:
Hi All,

I am designing printer friendly page for my website and would like to
know if there is a way to add a next and print button to the web page
but it should not show on my print out.

Thanks

Are you using CSS? If so, you could add a print-specific style sheet that
changes the buttons' display property to "none".

In your page:

<link rel="stylesheet" type="text/css" href="print.css" media="print" />
<input ... class = "printhide">

In your CSS:
..printhide
{
display: none;
}

+e
 
J

Jonathan N. Little

Charl said:
Hi All,

I am designing printer friendly page for my website and would like to
know if there is a way to add a next

The print stylesheet has already been addressed, but a "next button"?
Next what?
and print button to the web page
but it should not show on my print out.

The browser has one, at least all the modern ones! Why would you need to
add one? To do so requires JavaScript.
 
A

Arjen

Jonathan N. Little schreef:
The print stylesheet has already been addressed, but a "next button"?
Next what?

Next button :p

The browser has one, at least all the modern ones! Why would you need to
add one? To do so requires JavaScript.

This might be debatable but personally I like a print button on a page
that needs to be printed (confirmaton page or route planner etc)
 
J

Jonathan N. Little

Arjen said:
Jonathan N. Little schreef:

Next button :p

It's on the browser, and it is not valid unless your have hit the back
button first!
This might be debatable but personally I like a print button on a page
that needs to be printed (confirmaton page or route planner etc)

1) requires JavaScript enabled (it I put one on a page I firstly insert
"link|button" with JavaScript so it will not appear when not available
and secondly make not printable in CSS)

2) How about <p>[Print this page for your records]</p> ?
2a) Send client a receipt email (what I do) for his records
automatically...
 
M

Michael Fesser

..oO(Jonathan N. Little)
It's on the browser, and it is not valid unless your have hit the back
button first!

For browsers that support it there is also

6.12 Link types
http://www.w3.org/TR/html401/types.html#type-links

But most likely that's not what the OP wants ...
1) requires JavaScript enabled (it I put one on a page I firstly insert
"link|button" with JavaScript so it will not appear when not available
and secondly make not printable in CSS)

It also requires a browser that supports JS-invoked printing.
Most do, but not all.

Micha
 
J

Jonathan N. Little

Michael said:
.oO(Jonathan N. Little)


For browsers that support it there is also

6.12 Link types
http://www.w3.org/TR/html401/types.html#type-links

But most likely that's not what the OP wants ...

I like them and use them, but OP's UA is

UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)

I am sure he is totally unaware of their existence and therefore did not
mention them. Also PITA to statically code them, server-side CMS it is a
breeze...
It also requires a browser that supports JS-invoked printing.
Most do, but not all.

Hence my opposition to the idea.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top