How can i create a "print" button in a web page using front page?

C

Cesar

I am trying to print the content of some part on the web page i'm creating; I
saw some pages that have a "print" button i just want to know how to do this
 
T

Tom Willett

Print Button (Courtesy of Murray):

Put this in the head of the document -

<script type="text/javascript">
function print_page(where){
var is_mac=(navigator.platform.indexOf("ac") != -1);
(document.all && is_mac)?
alert("Select \"Print\" from the menu") : where? where.window.print() :
window.print();
}
</script>

Put this in the body of the document -
<a href="javascript:print_page()">Print this</a>
--
===
Tom Willett
Microsoft MVP - FrontPage
---
FrontPage Support:
http://www.frontpagemvps.com/
===
|I am trying to print the content of some part on the web page i'm creating;
I
| saw some pages that have a "print" button i just want to know how to do
this
 
T

Tom Willett

YW ;-)
--
===
Tom Willett
Microsoft MVP - FrontPage
---
FrontPage Support:
http://www.frontpagemvps.com/
===
| Thanks, Tom!
|
| --
| Murray
| --------------
| MVP FrontPage
|
|
| | > Print Button (Courtesy of Murray):
| >
| > Put this in the head of the document -
| >
| > <script type="text/javascript">
| > function print_page(where){
| > var is_mac=(navigator.platform.indexOf("ac") != -1);
| > (document.all && is_mac)?
| > alert("Select \"Print\" from the menu") : where? where.window.print() :
| > window.print();
| > }
| > </script>
| >
| > Put this in the body of the document -
| > <a href="javascript:print_page()">Print this</a>
| > --
| > ===
| > Tom Willett
| > Microsoft MVP - FrontPage
| > ---
| > FrontPage Support:
| > http://www.frontpagemvps.com/
| > ===
| > | > |I am trying to print the content of some part on the web page i'm
| > creating;
| > I
| > | saw some pages that have a "print" button i just want to know how to
do
| > this
| >
| >
|
|
 
C

Cesar

IS THERE ANY WAY THAT FRONT PAGE CAN FORMAT THE INFOMATION SO WE CAN PRINT
EVERTHING IN ONE SINGLE SHEET OF PAPER??
 
T

Thomas A. Rowe

You would have to design the page to contain all of the info on a single printed page using your
best guess of various printer default margin settings.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
M

Mike Mueller

#1 Stop Yelling

#2 FrontPage cannot do that on its own. You could use a new
stylesheet for printing, and redo the layout

: IS THERE ANY WAY THAT FRONT PAGE CAN FORMAT THE INFOMATION
SO WE CAN PRINT
: EVERTHING IN ONE SINGLE SHEET OF PAPER??
:
: "Tom Willett" wrote:
:
: > YW ;-)
: > --
: > ===
: > Tom Willett
: > Microsoft MVP - FrontPage
: > ---
: > FrontPage Support:
: > http://www.frontpagemvps.com/
: > ===
message
: > : > | Thanks, Tom!
: > |
: > | --
: > | Murray
: > | --------------
: > | MVP FrontPage
: > |
: > |
message
: > | : > | > Print Button (Courtesy of Murray):
: > | >
: > | > Put this in the head of the document -
: > | >
: > | > <script type="text/javascript">
: > | > function print_page(where){
: > | > var is_mac=(navigator.platform.indexOf("ac") != -1);
: > | > (document.all && is_mac)?
: > | > alert("Select \"Print\" from the menu") : where?
where.window.print() :
: > | > window.print();
: > | > }
: > | > </script>
: > | >
: > | > Put this in the body of the document -
: > | > <a href="javascript:print_page()">Print this</a>
: > | > --
: > | > ===
: > | > Tom Willett
: > | > Microsoft MVP - FrontPage
: > | > ---
: > | > FrontPage Support:
: > | > http://www.frontpagemvps.com/
: > | > ===
message
: > | >
: > | > |I am trying to print the content of some part on
the web page i'm
: > | > creating;
: > | > I
: > | > | saw some pages that have a "print" button i just
want to know how to
: > do
: > | > this
: > | >
: > | >
: > |
: > |
: >
: >
: >
 
Top