Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JavaScript]Błąd w getelemrntbyid w js
kiepski96
post 19.06.2012, 19:46:27
Post #1





Grupa: Zarejestrowani
Postów: 233
Pomógł: 0
Dołączył: 22.02.2010

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


Mam:

Kod
if( on=true) {document.getElementById('msg').innerHTML = "<iframe width='560' height='315' src='http://www.youtube.com/embed/2vniTHnlAFg' frameborder='0' allowfullscreen></iframe>" + response['post_id'];

}}

Co tutaj jest nie tak ?

Chciałbym aby document.getElementById zadziałało tylko wtedy jeśli on=true

Ten post edytował kiepski96 19.06.2012, 19:46:35
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 06:45