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


Groups > comp.lang.javascript > #21874

Re: Broken example on w3schools.com?

Message-ID <153744960.ZLAmpRSkbQ@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-11-03 13:26 +0100
Subject Re: Broken example on w3schools.com?
Newsgroups comp.lang.javascript
References <tLadnQ8umMSOluvPnZ2dnUVZ5rCdnZ2d@giganews.com> <52761d32$0$6639$9b4e6d93@newsspool2.arcor-online.net> <wrednc2y0uIAtOvPnZ2dnUVZ5v-dnZ2d@giganews.com>

Show all headers | View raw


Robert Crandal wrote:

> "Martin Honnen" <mahotrash@yahoo.de> wrote:
>> When I press the button on above page a new tab with
>> 
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_doc_getelementsbytagname
>> is opened and there I can press the button "How many input elements?" on
>> the right and it alerts "4".
>>
>> Tested with Chrome Version 30.0.1599.101 m.
> 
> Yes, my version of Chrome is "Version 30.0.1599.101 m".  Nothing
> happens when I press the "How many input elements?" button.
> But, the code does work in that latest Firefox.
> 
> Hmmm, odd that it doesn't work in my Chrome, but it works on yours,
> and we have the same Chrome version.

Although the example code is poorly written, as can be expected on 
w3schools.com, I can see “4” in

navigator.userAgent === "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 
(KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36" (Chromium “Version 
30.0.1599.101 Debian jessie/sid (227552)”)

and

navigator.userAgent === "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 
(KHTML, like Gecko) Chrome/31.0.1650.39 Safari/537.36" (Chrome “Version 
31.0.1650.39 beta”).

It is possible that some extension prevents the alert window from showing, 
or that it is displayed in the background.  Try what Martin suggested, then 
try disabling extensions.

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

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


Thread

Broken example on w3schools.com? "Robert Crandal" <noreply2me@yahoo.com> - 2013-11-03 01:36 -0700
  Re: Broken example on w3schools.com? "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-11-03 10:59 +0200
    Re: Broken example on w3schools.com? "Robert Crandal" <noreply2me@yahoo.com> - 2013-11-03 02:27 -0700
  Re: Broken example on w3schools.com? Martin Honnen <mahotrash@yahoo.de> - 2013-11-03 10:53 +0100
    Re: Broken example on w3schools.com? "Robert Crandal" <noreply2me@yahoo.com> - 2013-11-03 03:46 -0700
      Re: Broken example on w3schools.com? Tim Streater <timstreater@greenbee.net> - 2013-11-03 10:53 +0000
        Re: Broken example on w3schools.com? Martin Honnen <mahotrash@yahoo.de> - 2013-11-03 12:14 +0100
          Re: Broken example on w3schools.com? Tim Streater <timstreater@greenbee.net> - 2013-11-03 11:29 +0000
          Re: Broken example on w3schools.com? "Robert Crandal" <noreply2me@yahoo.com> - 2013-11-03 12:28 -0700
            Re: Broken example on w3schools.com? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-03 20:49 +0100
              Re: Broken example on w3schools.com? "Robert Crandal" <noreply2me@yahoo.com> - 2013-11-03 14:29 -0700
            Re: Broken example on w3schools.com? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-11-03 21:21 +0000
              Re: Broken example on w3schools.com? "Robert Crandal" <noreply2me@yahoo.com> - 2013-11-03 15:10 -0700
              Re: Broken example on w3schools.com? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-03 23:32 +0100
      Re: Broken example on w3schools.com? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-03 13:26 +0100
      Re: Broken example on w3schools.com? Dr.Kral@nyc.rr.com - 2013-11-03 16:35 -0500
        Re: Broken example on w3schools.com? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-04 01:15 +0100

csiph-web