I have a php page which is grabbing content from mysql and looping with while to display it. Each entry has a unique id, which I am setting as the name (the id is already taken in my script).
I then have this code:
Expand|Select|Wrap|Line Numbers
- window.onload = function() {
- alert(document.getElementById('holder0').name);
- }
Am I missing something? Why can't I get the elements name with getelbyid?
Thanks in advance.