files/en-us/web/api/barprop/index.md
{{APIRef("DOM")}}
The BarProp interface of the Document Object Model represents the web browser user interface elements that are exposed to scripts in web pages. Each of the following interface elements are represented by a BarProp object.
The BarProp interface is not accessed directly, but via one of these elements.
The following example prints a BarProp object to the console that represents the location bar.
console.log(window.locationbar);
{{Specifications}}
{{Compat}}