Forum Moderators: open

Message Too Old, No Replies

EMBED tag property

Correct property name?

         

adni18

8:35 pm on Apr 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all,

I'm not sure if it's valid or recommended or whatever, but there is an attribute (which works, in IE, which is what matters since what I'm doing an HTA) called VOLUME, but I'm unsure how to access it via Javascript. Does anyone know how? I've tried <element>.volume, but it doesn't seem to work...

Thanks,
adni18

httpwebwitch

4:13 pm on Apr 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ironically the list of javascript properties in IE7 does not include "volume", but the property is available in Firefox.

you can enumerate all the properties of an object like this:

var elem = document.getElementById('yourelement');
for(var s in elem){
document.write('<br/>'+s);
}