Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- img.onclick = function (e){
- e.target.src // здесь возвращает путь 'images/..'
- e.target.getAttribute('src') // возвращает путь
- e.target.getAttribute('class') // возвращает 'displayed-img'
- e.target.class // возвраащет undefined ?????
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement