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


Groups > comp.lang.javascript > #40780

Re: How come I don't get a box when I add an eventlistener?

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.javascript
Subject Re: How come I don't get a box when I add an eventlistener?
Date Thu, 10 Feb 2022 14:55:25 +0100
Lines 19
Message-ID <j6kjqdF14ovU1@mid.individual.net> (permalink)
References <24969684-2577-4eb1-b316-0b490769f615n@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace individual.net 4QWaqHfNVlFk/ueCWVzYEQ/HqG9oigNlyDYP8J4d0bUDESyYUz
Cancel-Lock sha1:frELGJ++FE/kX78txASOfqBnxR0=
Content-Language de-DE
In-Reply-To <24969684-2577-4eb1-b316-0b490769f615n@googlegroups.com>
Xref csiph.com comp.lang.javascript:40780

Show key headers only | View raw


chad altenburg:

> When I comment out the event listener code, I get a black box. However, when I don't, I don't get a black box. Why?

Because you have an error in your code. You write:

addEventListener();

However this function does not exist. I assume it should be:

addListener();

Next time please check the web developer console of your browser (F12)
and select "Console" to see error messages caused by your script.


-- 
Arno Welzel
https://arnowelzel.de

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


Thread

How come I don't get a box when I add an eventlistener? chad altenburg <cdalten@gmail.com> - 2022-02-09 09:42 -0800
  Re: How come I don't get a box when I add an eventlistener? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2022-02-09 21:53 +0000
    Re: How come I don't get a box when I add an eventlistener? chad altenburg <cdalten@gmail.com> - 2022-02-10 10:18 -0800
      Re: How come I don't get a box when I add an eventlistener? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2022-02-10 19:47 +0000
        Re: How come I don't get a box when I add an eventlistener? chad altenburg <cdalten@gmail.com> - 2022-02-10 19:13 -0800
          Re: How come I don't get a box when I add an eventlistener? The Natural Philosopher <tnp@invalid.invalid> - 2022-02-11 17:37 +0000
          Re: How come I don't get a box when I add an eventlistener? Arno Welzel <usenet@arnowelzel.de> - 2022-02-12 18:05 +0100
  Re: How come I don't get a box when I add an eventlistener? Arno Welzel <usenet@arnowelzel.de> - 2022-02-10 14:55 +0100

csiph-web