Menu
HTML:
<html>
<head>
<script type=’text/javascript’ src=’sciprt.js’></script>
</head>
</html>
JS:
window.onload = init;
function init() {
var allTags = document.getElementsByTagName(“*”);
document.write(allTags.length);
}
Why would the browser output “4” when there are clearly onlyt 3 tags?
Thanks in advance….