<!DOCTYPE html><html lang='cs'> <head> <script> document.getElementById("demo").innerHTML = 5 + 6; </script> </head> <body> <p id="demo"></p> </body></html>
<!DOCTYPE html><html lang='cs'> <head> </head> <body> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = 5 + 6; </script> </body></html>
Slo, a ta jedna veta je v odkaze: Now since the script executes before the page has loaded, I can't access the <body>, among other things.
Tem odkaz má 300 řádků. Když se ptám na takovou banalitu, těžko může někoho napadnout, že bych v té hromadě spleti našel něco co bych najít měl. Navíc opravdu nevím co tam mám hledat.. co myslíš ? Zkus se nad tím zamyslet..
Zkus se nad tím zamyslet..