Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dreamweaver Print Button

Status
Not open for further replies.

Lise

Technical User
Jan 10, 2002
8
0
0
CA
I have created a Dreamweaver Web page which contains frames. I am trying to create a print button which will allow the user to print a specific frame. Can this be done and how?
 
This will work; give it a try:

<input type=&quot;button&quot; value=&quot;Print&quot; onclick=&quot;parent.framename.print()&quot;>

Off course you'll need to change 'framename' into the name you gave the frame, where the html is loaded you want to print.
If you don't want to use a button you could use this:

<a href=&quot;javascript:parent.framename.print()&quot;><img src=&quot;image.jpg&quot; border=&quot;0&quot;></a>

HTH,

Quasibobo *** Don't eat yellow snow! ***
 
Quasibobo....thanks for your assistance. I tried the script that you provided me, however, it seems to always print the frame that the button is located in. I ensured that the naming of the frame in the code was correct and I was still unable to print the wanted frame. How can I put the button in the left frame but print the output from the right frame. Your assistance would be greatly appreciated.
 
Make sure you have: <input type=&quot;button&quot; value=&quot;Print&quot; onclick=&quot;parent.framename.print()&quot;> in the left frame and its linking to the right framename.
So if you're right frame name is Mainpage then it should look like:
<input type=&quot;button&quot; value=&quot;Print&quot; onclick=&quot;parent.Mainpage.print()&quot;>

I have not failed; I merely found 100,000 different ways of not succeding...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top