Print button that prints a named page

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
 
S

Steve Easton

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


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
M

Murray

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>
 
G

Guest

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
 
T

Thomas A. Rowe

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.
==============================================
 
M

Murray

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
 
S

Stefan B Rusynko

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
| >> >
| >> >
| >>
| >>
| >>
|
|
 

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

Top