Tips & Tutorials

4 Ways to Detect AdBlockers in Javascript (Simple Examples)

Welcome to a tutorial on how to detect AdBlockers with Javascript. Have trouble with AdBlockers and want to recover some of those lost revenue? The common ways to detect adblockers in Javascript are: Attempt to load the headers of an actual ad library (Google Adsense, Twitter, Facebook, etc…). Check if the request is blocked. Insert …

4 Ways to Detect AdBlockers in Javascript (Simple Examples) Read More »

Simple BMI Calculator In Javascript (Free Source Code)

Welcome to a beginner’s tutorial on how to create a simple Javascript BMI calculator (for both metric and imperial units). This one is for you health-conscious code ninjas, or students who are looking to do a simple project. Yep, a BMI calculator actually involves only an HTML form and simple calculations using Javascript – That’s …

Simple BMI Calculator In Javascript (Free Source Code) Read More »

3 Ways to Disable Copy Text in Javascript & CSS

Welcome to a tutorial on how to prevent text copying on a webpage using Javascript and CSS. Are you having some problems with content thieves? Are your articles getting copied and pasted somewhere else without your permission? Then it’s time to put some protection into place. To disable text copying in CSS and Javascript, there …

3 Ways to Disable Copy Text in Javascript & CSS Read More »

4 Ways to Detect Browser With Javascript (Simple Examples)

Welcome to a tutorial on how to detect the browser with Javascript. Have some scripts that you only want to run on a certain browser? Maybe limit some features, do some compatibility checks? The common methods used to detect the browser in Javascript are: Extract information from the user agent, check if it contains the …

4 Ways to Detect Browser With Javascript (Simple Examples) Read More »

How To Take Screenshots With Javascript (Simple Examples)

Welcome to a tutorial and examples on how to take screenshots with Javascript. So you have a certain project that needs to do screenshots. Maybe for an automated error report, so users don’t have to do all those crazy shortcut keys, paste the image, save and send an email. An easy way to capture screenshots …

How To Take Screenshots With Javascript (Simple Examples) Read More »

Simple Shortcut Keys With Pure Javascript (Free Source Code)

Welcome to a tutorial on how to add shortcut keys with Javascript. So you are developing your own web app and want to add some shortcut keys… Or maybe you just want to put in a “top-secret shortcut key” to do some Easter eggs on your website. Yes, it is actually pretty easy to listen …

Simple Shortcut Keys With Pure Javascript (Free Source Code) Read More »