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?
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:
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="button" value="Print" onclick="parent.framename.print()"> 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="button" value="Print" onclick="parent.Mainpage.print()">
I have not failed; I merely found 100,000 different ways of not succeding...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.