This documentation is archived and is not being maintained.

NavBar Element

SharePoint 2003

The NavBar element contains the definition of the navigation area for either the top links of all pages within a site or for the Quick Launch area of the home page.


  Body = "Text"
  ID = "Integer"
  Name = "Text"
  Prefix = "Text"
  Separator = "Text"
  Suffix = "Text"


BodyRequired Text. Contains the body of the definition for the navigation bar.
IDRequired Integer. Specifies the ID of the navigation bar.
NameRequired Text. Contains the name of the navigation bar.
PrefixOptional Text. Contains the opening tag for the table that contains the navigation bar.
SeparatorOptional Text. Specifies the separator to use between items in the navigation bar.
SuffixOptional Text. Contains the closing tag for the table that contains the navigation bar.

Element Relationships

Parent ElementsChild Elements
NavBars NavBarLink

The following example defines the top navigation area of a home page.

<NavBar Name="SharePoint Top Navbar" Separator="&nbsp;&nbsp;&nbsp;"
   Body="<a ID='onettopnavbar#LABEL_ID#' href='#URL#' accesskey='J'>#LABEL#</a>" ID="1002">
   <NavBarLink Name="Documents and Lists"
      Url="_layouts/[%=System.Threading.Thread.CurrentThread.CurrentUICulture.LCID%]/viewlsts.aspx" />
   <NavBarLink Name="Create"
      Url="_layouts/[%=System.Threading.Thread.CurrentThread.CurrentUICulture.LCID%]/create.aspx" />
   <NavBarLink Name="Site Settings"
      Url="_layouts/[%=System.Threading.Thread.CurrentThread.CurrentUICulture.LCID%]/settings.aspx" />
   <NavBarLink Name="Help" Url="javascript:HelpWindowKey("helphome")" />