<html>
<head>
<script type="text/javascript>
var a = document.getElementsByTagName("img").getAttribute("src");
alert(a);
</script>
<body>
<img src="www.google.com" alt="picture"/>
</body>
</html>

I want the browser to alert the src of the picture (www.google.com) but it never works !
Help much appreciated
Thanks in advance,
B.W