![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to work with document.embeds in JavaScript?
Use the document.embeds property in JavaScript to get the number of <embeds> tags in a document.
Example
You can try to run the following code to implement document.embeds property in JavaScript.
<!DOCTYPE html> <html> <head> <title>JavaScript Example</title> </head> <body> <embed src = "/html/yourfile.mid" width = "250" height = "100" /> <script> var num = document.embeds.length; document.write("<br>How many embed tags: "+num); </script> </body> </html>
Advertisements