This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Javascript String Printer | |
* Written by Steve Koehler | |
* www.tiny-threads.com | |
*/ | |
function print_str(str){ | |
var print_name = ("printer-" + (new Date()).getTime()); //random printer name | |
var elemFrame=document.createElement('iframe'); //the printer iframe | |
var printer; //the window instance of the iframe |