Tuesday, April 30, 2024
HomeTechnologySoftwareDetect Browser Bars Visibility with JavaScript

Detect Browser Bars Visibility with JavaScript

Date:

Related stories

Sarah Hudson Pierce: The effects of sleep deprivation

According to the CDC thirty -six percent or...

Free Printable To-Do List Template

Last updated: April 29, 2024 by the Homemade...

19 Neat Games We Saw At Xbox’s Big Indie Showcase

Microsoft is still working hard to court indie...

Tapping into the Power of Purpose to Engage Students

Having a purpose comes with benefits, according to...

2025 BMW M5 rumored to make 718 horsepower, that’s the good news

More intel courtesy of BMW whisperer ynguldyn, an...
spot_imgspot_img

It’s one thing to know about what’s in the browser document, it’s another to have insight as to the user’s browser itself. We’ve gotten past detecting which browser the user is using, and we’re now into knowing what pieces of the browser UI users are seeing.

Browsers provide window.personalbar, window.locationbar, and window.menubar properties, with the shape of visible : /*boolean*/ as its value:

if(window.personalbar.visible || window.locationbar.visible || window.menubar.visible) 
  console.log("Please hide your personal, location, and menubar for maximum screen space");

What would you use these properties for? Maybe providing a warning to users when your web app required maximum browser space. Outside of that, these properties seem invasive. What do you think?

  • WebKit-Specific Style:  -webkit-appearance

    I was recently scoping out the horrid source code of the Google homepage when I noticed the “Google Search” and “I’m Feeling Lucky” buttons had a style definition I hadn’t seen before:  -webkit-appearance.  The value assigned to the style was “push-button.”  They are buttons so that…

  • Introducing MooTools Dotter

    It’s best practice to provide an indicator of some sort when performing an AJAX request or processing that takes place in the background. Since the dawn of AJAX, we’ve been using colorful spinners and imagery as indicators. While I enjoy those images, I am…



Source link

Latest stories

spot_img