Javascript introspection


Very basic, but sometimes useful javascript object introspection

<img id="test">
<script type="text/javascript" language="JavaScript">
    el = document.getElementById('test');
    str = '';
    for (i in el) str += i+'; ';
    alert(str);
</script>