problems with print script

R

RuthL

I have programmed a set of pages with two frames. I have created a
clickable link on one of the pages to facilitate the user printing just that
page. Here is the code:

<form><input type="button" value="Print"
onClick="parent.mainFrame.focus();window.print()"></form>

This code works correctly on IE and Netscape on PCs; it opens the print
dialog box. But it does not work on any of the MAC browsers. Nothing
happens when my MAC friends click on the link.

RuthL
 
D

dm

RuthL said:
I have programmed a set of pages with two frames. I have created a
clickable link on one of the pages to facilitate the user printing just that
page. Here is the code:

<form><input type="button" value="Print"
onClick="parent.mainFrame.focus();window.print()"></form>

This code works correctly on IE and Netscape on PCs; it opens the print
dialog box. But it does not work on any of the MAC browsers. Nothing
happens when my MAC friends click on the link.

RuthL

Hi Ruth,
I have had the same problem trying to do something else. I ended up
having to put a print button on the page which linked to a printable
version of the page. An ugly solution, but one that works. If you find
out how to make it work on the MAC, let me know.

dave
 

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

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,121
Latest member
LowellMcGu
Top