window.locationbar Property Javascript DOM Share / Like
The locationbar, menubar and scrollbars properties of the window object return reference to the "BarInfo" object.
This code example shows how to evaluate the presence of the bar in the browser window.
Javascript CODE EXAMPLE
<script type="text/javascript">
if(window.locationbar){
if(window.locationbar.visible){
alert("This window has an address bar.");
} else {
alert("This window does not have an address bar.");
}
} else {
alert("This browser does not support the locationbar property.");
}
</script>
TIP: The same code can be used by inserting "menubar" or "scrollbars" in place of "locationbar" above.