# Javascript help

**URL:** https://forum.kirupa.com/t/javascript-help/265898
**Category:** Uncategorized
**Created:** [July 14, 2008, 12:54pm UTC](https://forum.kirupa.com/t/javascript-help/265898 "2008-07-14T12:54:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wo1olf](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wo1olf](https://forum.kirupa.com/u/wo1olf)
#### Post date: [July 14, 2008, 12:54pm UTC](https://forum.kirupa.com/t/javascript-help/265898/1 "2008-07-14T12:54:37Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![biznuge](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/biznuge/32/11567_2.png) [@biznuge](https://forum.kirupa.com/u/biznuge)
#### Post date: [July 14, 2008, 1:09pm UTC](https://forum.kirupa.com/t/javascript-help/265898/2 "2008-07-14T13:09:05Z")

</div>

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.

```auto
<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!
