I'm succesfully fetching an img element by it's ID, but I can't any of the properties' values, not even the id property.
I tried it both in Firefox and IE6 but to no avail.
Please help me solve this issue.
Code: Select all
// fetch_object emulates document.getElementById
// and bridges over browser compatibility (it works, the problem is not here)
var buttonIcon = fetch_object(obj.id + '_icon');
alert(buttonIcon.id);Code: Select all
for (property in buttonIcon)
{
alert(proprty + "<br>");
}