Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JavaScript] Błąd w kodzie
o2w5n778
post
Post #1





Grupa: Zarejestrowani
Postów: 235
Pomógł: 0
Dołączył: 10.12.2009

Ostrzeżenie: (0%)
-----


Zwraca mi akapit is null, w czym problem?
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title>str</title>
  6. <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  7. <link rel="stylesheet" type="text/css" href="style.css" />
  8. <script type="text/javascript">
  9. var akapit = document.getElementById("wrapper");
  10. akapit.style.fontWeight = "bold";
  11. </script>
  12. </head>
  13.  
  14. <body>
  15. <div id="wrapper">
  16. Lorem ipsum.
  17. </div>
  18. </body>
  19. </html>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 6.10.2025 - 19:59