HTML DOM Legend Object







googletag.cmd.push(function() { googletag.display('div-gpt-ad-1422003450156-2'); });



HTML DOM Legend Object



❮ Previous
Next ❯



Legend Object


The Legend object represents an HTML <legend> element.


Access a Legend Object


You can access a <legend> element by using getElementById():



Example



var x = document.getElementById("myLegend");

Try it Yourself »

Create a Legend Object


You can create a <legend> element by using the document.createElement() method:



Example



var x = document.createElement("LEGEND");

Try it Yourself »

Legend Object Properties











Property Description
form Returns a reference to the form that contains the legend

Standard Properties and Events


The Legend object also supports the standard properties and events.




Related Pages


HTML reference: HTML <fieldset> tag


HTML reference: HTML <legend> tag





❮ Previous
Next ❯

Popular posts from this blog

Python Lists

Aion

JavaScript Array Iteration Methods