+ 1
For those whose javascript code not running.
if u have used external javascript. if u have included it internally. and javascript is not showing at output.
3 Respostas
+ 2
write script tag at the end just before body tag.
everthing will work fine.
why??
because code runs top to bottom.
and when sometimes we use script tag above then elements(id class and tags)and all accessed are actually not present at that point of time.😉
+ 1
lol no, the position of <script> tags only affects the speed of how the .html loads. If your script is not showing an output, it's because your script has errors.
+ 1
but bro it happened with me.
may be because of editor or browser