Javascript help

I am looking for a script that print a limited part or region of a window. I ahave tried with divs, it did work but the thing is whent it is with a filled form all the data inside are lost. Does anyone know a way to do it?

could you explain a little more wo1olf? not sure if i entriely understand the principle behind what you’re doing?

If you’re just trying to hide certain elements or markup within a seperate “print.css” file or seperate included css sheet, then why not simply supply “display:none;” as an entry in the markup for elements you do not want ot have visible in the printed version.

or alternatively, if you want to show a bit of space where those elements might have been (maybe to show the definite omission of info to users) then you could similarly use “visibility:hidden” on the element.

<html><head></head><body>
<div>Lorem ipsum testing no style</div>
<div style="visibility:hidden;">Lorem ipsum testing visibility:hidden</div>
<div style="visibility:collapse;">Lorem ipsum testing visibility:collapse</div>
<div style="display:none;">Lorem ipsum testing display:none</div>
<div>Lorem ipsum testing no style</div>
</body></html>

Hope this helps, but if I’m missing the point of what you’re trying to do, please supply a little more explanation mate.

Cheers!