How can I detect the page zoom level in all modern browsers? While this thread tells how to do it in IE7 and IE8, I can't find a good cross-browser solution. Firefox stores the page zoom level for future access. On the first page load, would I...
I am trying to find an easy way to detect if my extension is installed in Firefox 3.6. This should be done from a webpage, probably using javascript.  I've read a lot of blogs that says that I should try loading an image from my extension. Since...
The aim for me is to have a mobile website (for mobiles and tablets) and a responsive desktop website, built on Wordpress. I want the easiest way to implement fool proof device detection.  The mobile website is going to have a lot of features that ar...
What's concept of detecting support of any css pseudo-class in browser through JavaScript? Exactly, I want to check if user's browser supports :checked pseudo-class or not, because I've made some CSS-popups with checkboxes and needs to do...
I'm using the following script to force a specific page - when loaded for the first time - into a (third-party) iFrame.  <script type="text/javascript">     if(window.top==window) {        location.reload()     } else {     } </s...
Is there a way to tell if a user came to your website via a home screen shorcut? With iOS I'm able to use the following javascript code to detect if the user opened the page via the home screen shortcut:  if (('standalone' in navigator &a...
Is there a way to check if two elements have the same class name? My code looks like this...  <body class="foo bar cats"> <a href="#" class="foo">Link</a> <a href="#" class="puppies">Lin...
I would like to know, what is the best way to detect tablets and smartphone at the moment?  Plugin, user agent detection, touch screen detection etc.  Thanks...
In this question I did not see suggestions to use constructor.  So instead of typeof callback == "function"  I would use callback && (callback.constructor==Function).  To me it seems obvious that comparison to memory pointers is alway...
I want to create different behaviors according to the layout engine of the client's browser. How to detect if it's WebKit (Chrome, Safari, Yandex, Midori), Gecko (Firefox, K-Meleon, Netscape), Trident (IE), or others?...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.