I'm looking for a way to get all functions currently attached to a javascript object (a dom element). I'm familiar with using for (var m in obj)
and getting the non-enumerable ones with Object.getOwnPropertyNames()
.
However on any video page on youtube.com document.getElementById('movie_player')
has the function getVideoBytesTotal
, which isn't listed by any method I have tried.
The object in question here is a flash embed. Can the function come from it?
I'm lost. Is there some kind of wrapper around some dom objects, which dynamically adds functions?
Even having a list through other means that entering javascript through the console would be great.
Best regards