Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #35783

Re: Image load problem: OK in my Win 7, not in either Win10

Newsgroups comp.lang.javascript
Subject Re: Image load problem: OK in my Win 7, not in either Win10
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <f38f3d44-7c43-4483-a82c-fb0159fd941b@googlegroups.com> <8b16a9d8-6d22-47b8-8e2d-13595c1fad71@googlegroups.com> <f06ba9ab-2e6f-4a4b-a496-473b2d72f7aa@googlegroups.com>
Date 2018-10-14 15:29 +0200
Message-ID <XnsA97B9D981FFEFeejj99@194.109.6.166> (permalink)

Show all headers | View raw


Dr J R Stockton <J.R.Stockton@physics.org> wrote on 14 Oct 2018 in 
comp.lang.javascript:

> I use @media print { .NPR { display: none; } } /* SB CIWAS 20140116 */
> in CSS for HTML; is there some property by which ECMAscript can tell
> whether the output is to screen or printer?

You could use:

window.onbeforeprint
and
window.onbeafterprint

... to set style values as you want, 
but not, methinks, to read the actual printing values.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Image load problem: OK in my Win 7, not in either Win10 Dr J R Stockton <J.R.Stockton@physics.org> - 2018-10-13 14:29 -0700
  Re: Image load problem: OK in my Win 7, not in either Win10 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-10-13 20:40 -0700
    Re: Image load problem: OK in my Win 7, not in either Win10 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-10-14 11:11 +0200
    Re: Image load problem: OK in my Win 7, not in either Win10 John G Harris <niam@jghnorth.org.uk.invalid> - 2018-10-14 11:18 +0100
      Re: Image load problem: OK in my Win 7, not in either Win10 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-10-14 22:06 -0700
    Re: Image load problem: OK in my Win 7, not in either Win10 Dr J R Stockton <J.R.Stockton@physics.org> - 2018-10-14 06:01 -0700
      Re: Image load problem: OK in my Win 7, not in either Win10 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-10-14 15:29 +0200
      Re: Image load problem: OK in my Win 7, not in either Win10 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-10-14 21:42 -0700
        Re: Image load problem: OK in my Win 7, not in either Win10 Dr J R Stockton <J.R.Stockton@physics.org> - 2018-10-15 05:02 -0700
          Re: Image load problem: OK in my Win 7, not in either Win10 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-10-15 16:06 +0200
            Re: Image load problem: OK in my Win 7, not in either Win10 Dr J R Stockton <J.R.Stockton@physics.org> - 2018-10-15 15:43 -0700
          Re: Image load problem: OK in my Win 7, not in either Win10 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-10-16 02:55 -0700
            Re: Image load problem: OK in my Win 7, not in either Win10 Dr J R Stockton <J.R.Stockton@physics.org> - 2018-10-16 05:00 -0700

csiph-web