| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi guys!
im working on a website that sells property and on that site i want to have a print button that will only print a specific portion of the page not everything like my headers and my footers, and i have no idea where to start can anyone help. Your responce is highly appreciated! Kind Regards |
|
#2
|
||||
|
||||
|
Hi
You could wrap the bits you want to hide with a DIV: Code:
<div id="HideMe" style="display: inline;">Text to hide</div> Code:
<script language="JavaScript">
function PrintEm() {
HideMe.style.visibility='hidden';
print();
HideMe.style.visibility='visible';
}
</script>
|
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Print |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|