Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q500 Is it possible to list all inherent properties and methods of a given object such as one used in an embed tag?

irt.org | Knowledge Base | JavaScript | Object | Q500 [ previous next ]

Q500 Is it possible to list all inherent properties and methods of a given object such as one used in an embed tag?

Wouldn't it be nice if it was? Well:

<EMBED SRC="sound.mid" NAME="mySound" MASTERSOUND AUTOSTART="false" LOOP=1 HIDDEN="true" HEIGHT=0 WIDTH=0>

<SCRIPT LANGUAGE="JavaScript"><!--
function interrogate(what) {
    var output = '';
    for (var i in what)
        output += i+ '\n';
    alert(output);
}
//--></SCRIPT>

<FORM>
<INPUT TYPE="BUTTON" onClick="interrogate(document.embeds[0])" VALUE="View">
</FORM>

Feedback on 'Q500 Is it possible to list all inherent properties and methods of a given object such as one used in an embed tag?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.