<html> <body> <!-- Body content with some embed objects --> <input type="button" value="Retrieve the number of embeds in this document" onclick="alert(document.embeds.length);"> </body> </html>