Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Hiding a print button


Message #1 by "Nato Castro" <natocastro@h...> on Fri, 9 Nov 2001 04:00:49
hi,when you make the print then you can use this line to hide you button.

formname.buttoname.style.visibility = "hidden"


>From: "prot  shan" <prot_shan@r...>
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] Re: Hiding a print button
>Date: 19 Nov 2001 14:02:09 -0000
>
>
>Hi ,
>
>for the first part , declare a hidden field with the value null .
>Just prior to printing setthe value to some string .
>Now in your print command check the length of this hiddeen varaible .
>If the value is null then show the print button or link and if not then 
>bypass it .
>
>As for the second part send me what command you are using for printing .
>
>do let me know if my approach worked in the first part .
>
>prot
>On Fri, 09 Nov 2001 Nato Castro wrote :
> > Hi to all,
> > I created a print button in a wep page; my question is
> > how can I hide the
> > button when the page is printed? and the other question
> > is how can I set
> > up the page to be printed in one page? When I print the
> > page, there is
> > always a second page with a couple lines, but I just
> > want to print it in
> > one page.
> > Anybody has any idea???
> > Thanks in advanced.
> > Nato
> > prot_shan@r...
> > $subst('Email.Unsub')
> >
>
>
>
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


  Return to Index