[thelist] javascript:print();

colin bocmaxima at wtez.net
Sun Feb 16 13:00:01 CST 2003


> > I have a frameset where the top frame contains a link 'print this page'.
> > The link points to 'javascript:print();'.
> >
> > This command is going to print the top frame containing the 'print this
> page' text, but actually I want it to print the bottom frame.
> >
> > How do I do this?
>
> Not having tested this:
>
> javascript: top.frames.bottomFrameName.print();  should do the trick.
> (Obviously, " bottomFrameName " would be the name of the frame you want to
> print.)
>

This does work, but same rules with frames apply, namely taht your page
being on a different server will cause an error.


colin
houston, tx
http://www.shuaige.net
http://www.tech.uh.edu
colin at wtez.net




More information about the thelist mailing list