• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • Teams
Menu
0

why is this code showing uncaught TypeError.please help..

var x; function magic(y) { x=document.getElementByTagName("img"); x.src="https://lh5.googleusercontent.com/proxy/pPBeGLABiPXS8S1_98koFm4JqKrID44cxA0hPbiwqdSe_TUf_UvQ_UCcPatnVSRWagFkp0p0qpiwy_C6lS7MSxKZEiibU6LNrZHEl6ppk_Lxw57TziCTsRkeYCOt4oFgXfmmglnXiACa3KsTyrihOkx2dvg7FxiCCpUWCQ3KZMVYatPj2rGXIIA=w368-h399-nc"; }

javascriptdom
13th Dec 2016, 5:29 AM
Rithu.O.R
1 ответ
+ 1
getElement "s" ByTagName("img")[0]
14th Dec 2016, 2:44 AM
freshnewname
freshnewname - avatar

Часто задают такие вопросы?

Учитесь эффективнее, бесплатно:

  • Введение в Python

    7.1M учащихся

  • Введение в Java

    4.7M учащихся

  • Введение в C

    1.5M учащихся

  • Введение в HTML

    7.5M учащихся

Смотреть все курсы
Актуальное сегодня
How often can you become a fully stuck developer?
1 Votes
Improve accessibility of this page
0 Votes
What is a simple and easy way to learn ruby? :)
0 Votes
Help
1 Votes
Data analysis
0 Votes
Lesson Takeaways
0 Votes
Course Doubt
1 Votes
If we already have the DELETE command in SQL, why do we need TRUNCATE?
2 Votes
How do i make a lexer and parser
1 Votes
Order of AI courses
0 Votes