JavaScript Window property: length
[this page | pdf | back links]
The length property (of the JavaScript
BOM window object) returns
the number of <iframe>
objects in the current window.
EXAMPLE:
HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
Window length (number of iframe elements):<br><b id="element">
<script>
document.getElementById("element").innerHTML = window.length;
</script>
</body>
</html>
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)