WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Nav Object


Nav Object

The Nav Object is new in HTML5.

The Nav object speaks to a HTML <nav> element.

Note: The <nav> component isn't upheld in Internet Explorer 8 and prior versions.

Access a Nav Object

You can get to a <nav> component by utilizing getElementById():

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

Create a Nav Object

You can make a <nav> component by utilizing the document.createElement() method:

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