HTML DOM Nav Object







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



HTML DOM Nav Object



❮ Previous
Next ❯



Nav Object HTML5


The Nav Object is new in HTML5.


The Nav object represents an HTML <nav> element.


Note: The <nav> element is not
supported in Internet Explorer 8 and earlier versions.



Access a Nav Object


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



Example



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

Try it Yourself »

Create a Nav Object


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



Example



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

Try it Yourself »

Standard Properties and Events


The Nav object supports the standard properties and events.




Related Pages


HTML reference: HTML <nav> tag




❮ Previous
Next ❯

Popular posts from this blog

Python Lists

Aion

JavaScript Array Iteration Methods