faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

21 of 54 people (39%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

how can i print the full window which has a horizontal scroll bar and a part of the page is hidden

Apr 5th, 2008 20:05
ha mo, christian courtois, Colin Fraser, sandeep dasgupta,


hello, just one basic solution (sorry for my por english) :
you use 
<div id="t1" style="width:100%;overflow:auto;heigth:250px">
 your scrollable part.
</div>
to print add button print :
<input id=button onclick=allPrint() type=button name=print value=print>
javascript part 
<script>
function allPrint(){
   t1.style.overflow = "visible";
   window.print();
   t1.style.overflow = "auto";
}
</script>
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com