Print button that prints a named page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have via a java script a button that prints the page where the button is
placed. I need a button that prints another webpage, ie the button is placed
on one page and once clicked on it, it prints another page with a certain
name.

Thnx
Michael
 
A page needs to be "opened" to print it.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
And, it's likely that the print javascript will fail in IE/Mac. This is
about the best you can do -

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>
 
Does this script print the page on which the button is placed?

In my case the button is placed on a page.. and in the page I have a frame
with a document in the frame that is opened and shown. I would like to make
the button print the document in the frame. Is that possible?


Thnx for the help
Michael
 
The button must be on the page you want to print.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Is that possible?

Nope.

--
Murray
============

Michael said:
Does this script print the page on which the button is placed?

In my case the button is placed on a page.. and in the page I have a
frame
with a document in the frame that is opened and shown. I would like to
make
the button print the document in the frame.>

Thnx for the help
Michael
 
Sorta w/ JavaScript (not globally supported)
See http://www.developer.irt.org/script/73.htm

--




|> Is that possible?
|
| Nope.
|
| --
| Murray
| ============
|
| | > Does this script print the page on which the button is placed?
| >
| > In my case the button is placed on a page.. and in the page I have a
| > frame
| > with a document in the frame that is opened and shown. I would like to
| > make
| > the button print the document in the frame.>
| >
| > Thnx for the help
| > Michael
| >
| > "Murray" wrote:
| >
| >> And, it's likely that the print javascript will fail in IE/Mac. This is
| >> about the best you can do -
| >>
| >> 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>
| >>
| >>
| >>
| >> --
| >> Murray
| >> ============
| >>
| >> | >> >A page needs to be "opened" to print it.
| >> >
| >> >
| >> > --
| >> > Steve Easton
| >> > Microsoft MVP FrontPage
| >> > 95isalive
| >> > This site is best viewed..................
| >> > ..............................with a computer
| >> > | >> >> Hi,
| >> >>
| >> >> I have via a java script a button that prints the page where the
| >> >> button
| >> >> is
| >> >> placed. I need a button that prints another webpage, ie the button is
| >> >> placed
| >> >> on one page and once clicked on it, it prints another page with a
| >> >> certain
| >> >> name.
| >> >>
| >> >> Thnx
| >> >> Michael
| >> >
| >> >
| >>
| >>
| >>
|
|
 
Back
Top