I have a question. If I have 3 frames in my page, how can I print the content page without those two other frames. Is there a property where I can set, or some kind of function. Thank you!!!
I think that the only option is to open the desired frame document sepatately (in popup window) and then print it.
Here's how to do it:
<a href="javascriptrintIt()">print this page</a>
function printIt() {
url = parent.frameName.location.href; //get URL of the desired frame
a = window.open(url,"print","location=no,scrollbars=no,menubar=no,toolbar=no,width=200"
a.print();
}
Place this function to the <head> of your frameset, or attach it in external .js file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.