HTML DOM Nav Object


Nav Object

The Nav object represents an HTML <nav> element.

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


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.