Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

Urlbar-icons

This article needs a technical review. How you can help.

« XUL Reference home [ Examples | Attributes | Properties | Methods | Related ]

The location of UI elements like the bookmarks, feed and go buttons. Create new image or button child elements to add your own items.

(The URL bar is also known as the Address bar and the Navigation bar.)

Example

The default contents of browser.xul:

<hbox id="urlbar-icons">
  <button be="" chromedir="ltr" class="urlbar-icon" click="" for="" id="safebrowsing-urlbar-icon" img="" level="safe" might="" onclick="goDoCommand('safebrowsing-show-warning');" page="" style="-moz-user-focus:" tooltiptext="This" type="menu">
    <img class="urlbar-icon" id="star-button" onclick="PlacesStarButton.onClick(event);" />
    <img address="" chromedir="ltr" class="urlbar-icon" id="go-button" in="" location="" onclick="handleURLBarCommand(event);" p="" the="" to="" tooltiptext="Go" />
  </button>
</hbox>

Document Tags and Contributors

 Contributors to this page: Brettz9, Sheppy, fhd, Enn, Theory
 Last updated by: Brettz9,