Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Object | Q500 [ previous next ]

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?'

©2018 Martin Webb