- From: Mlocik97-issues via GitHub <sysbot+gh@w3.org>
- Date: Fri, 24 Aug 2018 19:14:51 +0000
- To: public-css-archive@w3.org
now we must do it over JS by two ways.... dynamicalli innerHTML style tag to head, or do something like this: ``` function vytisknout(htmlKod, titulek) { var w = 800, // šířka okna h = 600, // výška okna left = (window.screen.width - w) / 2, top = (window.screen.height - h) / 2; var okno = window.open( '', // URL žádná není 'oknoTisk', // název okna "height=" + h + ", width=" + w + ", left=" + left + ", top=" + top + ", location=no, menubar=yes, status=no, toolbar=no, scrollbars=yes, resizable=yes"); okno.document.write( '<!doctype html><meta charset="utf-8"><title>' + titulek + '</title>' ); okno.document.write(htmlKod); okno.document.close(); okno.focus(); okno.print(); okno.close(); } ``` -- GitHub Notification of comment by Mlocik97-issues Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3050#issuecomment-415856404 using your GitHub account
Received on Friday, 24 August 2018 19:14:57 UTC