Начало
Детали страницы
Frame печати
Выделите кадр и распечатайте.
Click Here for Demonstration
JavaScript Page Details: Frame печати
<!-- THREE STEPS TO INSTALL FRAME PRINT: 1. Set up your frames (example below) 2. Copy the coding into the HEAD of your HTML document for one frame 3. Add the last code into the BODY of your HTML document for the same frame --> <!-- STEP ONE: Set up your frames --> <frameset cols="100,*"> <frame src="frame-left.htm" name="frame1"> <frame src="frame-right.htm" name="frame2"> </frameset> <!-- STEP TWO: Paste this code into the HEAD of your HTML document for the first frame --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <! > <! > <!-- Begin function myprint() { window.parent.frame2.focus(); window.print(); } // End --> </script> </HEAD> <!-- STEP THREE: Copy this code into the BODY of your HTML document of the same frame --> <BODY> <input type=button value="Print Right Frame" onClick="myprint()"> <!-- Script Size: 0.86 KB -->