i wrote a sample Html page that contain a img and change src of img with code
<img id='p6'/>
document.getElementById('p6').src='somting.jpg';
when i write code in tag find that i can write this code instead of above code:
p6.src='somting.jpg';
and it work perfectly...can anyone say to me what happend in this code? and realy we can access Html element whitout use document.getElementById() ?