i want to print a page which i put in an iframe but dont want the contents to be displayed in the webpage , but the print button doesnt work when i put the iframe to display='none'
what i did:- i set the iframe style='none'
"name="frame1" ><input type="button" onclick="frames['frame1'].print()" value="print!">
how can i print the contents of iframe without displaying it on the webpage or say by keeping the ifram hidden
would really appreciate any help.....
You do a print css file, and within that file you do not have the display: none style.
Here's a link to media types, thanks to Dror.
Instead of display: none, you could try visibility: hidden and setting the width and height to 1px each.