Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JS]czy poprawny agrument funkcji?
Obszczymur
post
Post #1





Grupa: Zarejestrowani
Postów: 25
Pomógł: 0
Dołączył: 11.12.2011

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


  1. function poka() {
  2. if(document.getElementById('html').style.display = 'none'){
  3. ...
  4. }
  5. else {
  6. return false;
  7. }
  8. }


Czy taki argument fukncji (document.getElementById('html').style.display = 'none') jest ok? bo skrypt nie chce działać i nie wiem czy to jest problemem (IMG:style_emoticons/default/wink.gif) z góry bardzo dziękuję ! (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 559
Pomógł: 6315
Dołączył: 27.12.2004




To uzywaj porównania a nie przypisania.
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: 4.10.2025 - 18:40