This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to print content of frame? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to print content of frame?" Watch "How to print content of frame?" New topic
Author

How to print content of frame?

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
print() function is not working.


TIA.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by rathi ji:





try this to print your frame



Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

The contentWindow property returns the window object for the frame. for more...
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
And the error message is....

Eric
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by Eric Pascarello:

And the error message is....


Hi Eric,

I do some changing in above code is



change onLoadChange event with ONLOAD event


I don't recieve any error message in this code its running fine..
Please correct me if there is something wrong..
[ November 22, 2006: Message edited by: Saif uddin ]
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Eric Pascarello:
And the error message is....

Eric


The error message was 'object doesn't support this property or method'. I figured out through this message that frame object doesn't have print() function... but I have one more code where I am calling print() function on frame object only and it's working perfectly.

I am doing sth wrong for sure. :roll:

Thanks Saif.
 
wood burning stoves
 
subject: How to print content of frame?