Squadless
asked on
print only iframe content
I've the page where i have an iframe showing the main content along with the navigaiton in the document. when users print the page using control+p i only want to display the iframe content and simply hide the main parent page.
how do i capture ctrl+p in javascript if i can? If not is there any simpler way to accomplish this?
how do i capture ctrl+p in javascript if i can? If not is there any simpler way to accomplish this?
ASKER
how about hiding the body but only showing iframe? cos if i hide body it's also hiding the iframe too
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@media screen {
iframe { display: none; }
}
@media print {
iframe { border: solid 2px red; }
}