The other day Cats who code had a blog post about detecting AdBlock, where the main trick is to try to load a JavaScript document with the name adframe.js: <script type="text/javascript"> var adblock = true; </script> <script type="text/javascript" src="adframe.js"></script> <script…
Detecting touch: it’s the ‘why’, not the ‘how’
One common aspect of making a website or application “mobile friendly” is the inclusion of tweaks, additional functionality or interface elements that are particularly aimed at touchscreens. A very common question from developers is now “How can I detect a…