Forum Moderators: open
var obj = document.getElementsByTagName("object");
alert("No of Embeeded Objects = " + obj.length);
/*
"getElementsByTagName" method gives the references to the no. of occurances of tagname specified in the parameter.
this may work in case your site contains only flash objects
or else you have to render this through a loop and identify the type of object it is.
*/