Connecting Tech Pros Worldwide Help | Site Map

problems with print script

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 02:31 PM
RuthL
Guest
 
Posts: n/a
Default problems with print script

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



  #2  
Old July 20th, 2005, 02:31 PM
dm
Guest
 
Posts: n/a
Default Re: problems with print script

RuthL wrote:[color=blue]
> 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
>
>[/color]

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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.