• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • 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 учащихся

Смотреть все курсы
Актуальное сегодня
Algorithm to create maze-like grid
2 Votes
photo upload issue in html code
0 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Need a personal tutor
0 Votes
Community and feed option
0 Votes
How Much RAM is Required for Object Detection Project
0 Votes
How can I turn my .py files to .exe files?
1 Votes
Hey ! how to install modules on this app
0 Votes
Summary please??
0 Votes
Add lua
0 Votes