<html>
<head>
<meta name="meta">
</head>
<body>
<blockquote cite="https://developer.mozilla.org/en-US/docs/Web/API/Element/name">
name gets or sets the name property of a DOM object; it only applies to the following elements: <a>, <applet>, <button>, <form>, <frame>, <iframe>, <img>, <input>, <map>, <meta>, <object>, <param>, <select>, and <textarea>.
</blockquote>
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/name">Element.name | MDN</a>
<p>
With Google Chrome, only <form>, <iframe>, <img>, and <object> gives a value, and iframe as Window object.<br />
With Firefox, only <applet>, <form>, <img>, and <object> gives a value.
</p>
<hr />
<a name="a" href="https://developer.mozilla.org/en-US/docs/Web/API/Element/name">a</a>
<applet name="applet"></applet>
<form name="form">
<button name="button"></button>
<textarea name="textarea"></textarea>
<input name="input">
<select name="select"></select>
</form>
<frameset>
<frame name="frame">
</frameset>
<iframe name="iframe"></iframe>
<img name="img">
<map name="map"></map>
<object name="object">
<param name="param">
</object>
<script>
['a',
'applet',
'button',
'form',
'frame',
'iframe',
'img',
'input',
'map',
'meta',
'object',
'param',
'select',
'textarea',
].forEach(function(x){
console.log('document.'+x+': '+document[x]);
});
['button','input','select','textarea'].forEach(function(x){
console.log('document.form.elements.'+x+': '+document.form.elements[x]);
})
</script>
</body>
</html>