Only the contents of this div are printed.
I have used a border to highlight the printable content.
1. Item One
2. Item Two
The id of the div is passed to the function.
Click to print div 1
On clicking the link the following sequence of events happens.
1. A new window is opened
2. The contents of the div are dynamically written to the new window
3. Data is sent to the printer
4. The new window is automatically closed (IE only)
Other areas of a page can be printed simply by defining another div and link
A second div containing text to be printed.
Ditto, ditto and ditto
Click to print div 2
start the javascrpt tab
close the javascrpt tab
No comments:
Post a Comment