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


Groups > comp.lang.javascript > #40975

Re: I can't get document.getElementById to work.

Newsgroups comp.lang.javascript
Date 2022-07-06 09:17 -0700
References <7b2c22d7-e292-46b1-9e86-f12915c816ffn@googlegroups.com>
Message-ID <1cfef3a2-1c7c-4774-b780-d31970eed034n@googlegroups.com> (permalink)
Subject Re: I can't get document.getElementById to work.
From Ace of diamonds <he12091983@gmail.com>

Show all headers | View raw


Hey guy. Would You want to get rich with me doing programming? If yes, call me !!!!!!!!!

✆☎☏📱📞 : 372 53900660


Tyler Harris kirjutas Reede, 8. aprill 2022 kl 08:22:55 UTC+2:
> I have placed the javascript at the end of the body, so this part is not the problem. Also, this code works when I compile it in another program. 
> 
> I am actually using TiddlyWiki5 with an inline JavaScript plugin. 
> 
> This is the code I have: 
> ``` 
> <script> 
> var test = document.getElementById("div_name").innerHTML; 
> alert('test'); 
> </script> 
> ``` 
> I am using a live preview editor, so with every keystroke, I get that alert. I keep getting that alert until I hit the capital "B", then the alert stops working. 
> Does anyone know what is wrong here?

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


Thread

I can't get document.getElementById to work. Tyler Harris <thylorion@gmail.com> - 2022-04-07 23:22 -0700
  Re: I can't get document.getElementById to work. Jon Ribbens <jon+usenet@unequivocal.eu> - 2022-04-08 16:45 +0000
    Re: I can't get document.getElementById to work. Julio Di Egidio <julio@diegidio.name> - 2022-04-09 04:16 -0700
      Re: I can't get document.getElementById to work. Ace of diamonds <he12091983@gmail.com> - 2022-07-06 09:18 -0700
  Re: I can't get document.getElementById to work. JJ <jj4public@gmail.com> - 2022-04-09 14:06 +0700
  Re: I can't get document.getElementById to work. Ace of diamonds <he12091983@gmail.com> - 2022-07-06 09:17 -0700

csiph-web