Why doesn't my getAttribute work ?
var a = document.getElementsByTagName("img").getAttribute("src");
<img src="www.google.com" alt="picture"/>
I want the browser to alert the src of the picture (www.google.com) but it never works !
Help much appreciated
Thanks in advance,
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread