PDA

Click to See Complete Forum and Search --> : print action


Big Perm-dizzle
04-03-2004, 08:08 AM
i have this online form thats meant to be printed not submitted....whats the script for print action on a button

"In the past couple of weeks your kids have touched me, and i'm pretty sure i've touched them too" - Jack Black (School of Rock)

Ryan8720
04-03-2004, 08:38 AM
In JavaScript window.print() will print the page.

Do you need to just print the form?

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

C:\DOS
C:\DOS\RUN
RUN DOS RUN

Big Perm-dizzle
04-03-2004, 09:03 AM
yeah just a print button....

its 'puppy purchase agreement' i guess its a legal document...I inserted text areas so the info could be typed in...hopefully that will cut down on the handwriting issues....

i also have it downloadable in pdf format

"In the past couple of weeks your kids have touched me, and i'm pretty sure i've touched them too" - Jack Black (School of Rock)

Big Perm-dizzle
04-03-2004, 09:14 AM
is this right?

<input name='Print' type='button' id='Print' onClick='MM_callJS('window.print()')' value='Print'>

"In the past couple of weeks your kids have touched me, and i'm pretty sure i've touched them too" - Jack Black (School of Rock)

Ryan8720
04-03-2004, 09:22 AM
That depends on what the function MM_callJS is and does.

All you need is:

<input name='Print' type='button' id='Print' onClick='window.print()' value='Print'>

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

C:\DOS
C:\DOS\RUN
RUN DOS RUN