[whatwg] [html5] window.print() undefined
Ian Hickson
ian at hixie.ch
Mon May 21 22:37:36 PDT 2007
On Mon, 18 Jul 2005, Olav Junker Kjær wrote:
>
> I dont think you should set element.style.display to "block", if the
> element should be visible only on screen and not in print. It would be
> better to dynamically assign it a class which is defined in the
> stylesheet to be visible on screen and not in print. (Its a bit tricky
> to add and remove class names, but still cleaner than using print
> events.)
It should now be easy, with our new 'classList' DOM attribute.
HTH,
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list