Javascript

JavaScript is a programming language used to make web pages interactive. It runs on your visitor's computer and doesn't require constant downloads from your website.

How to convert a plain SVG string or SVG node to an Image (PNG or JPEG) in the browser with JavaScript
Learn how to easily convert a plain SVG string to an image directly in the browser.
How to calculate the height of an image with a custom width preserving the aspect ratio with JavaScript
Learn how to calculate automatically the proper height of an image with custom width preserving the original aspect ratio.
How to prevent regular users from opening the chrome developer tools in the browser with JavaScript
Learn how to prevent regular users from opening the developer's tools in the browser.
What is the difference between the async and defer attributes in JavaScript
Learn with examples what's the difference between loading a script normally, with the async or defer attributes.
How to properly configure "Lazy Loading" of a YouTube embed Video
Learn how to properly Lazy Load a YouTube embed video on your website with JavaScript
Why and when should you obfuscate your JavaScript code?
Discover why and when should you obfuscate your JavaScript code.
How to read multiple files at once using the FileReader class in JavaScript
Learn how to read multiple JavaScript files at once using the FileReader in JavaScript.
Displaying a hint to suggest that the elements are scrollable horizontally with ScrollHint in JavaScript
Learn how to use the ScrollHint library to display a suggestion in horizontally scrollable elements.
How to fix ESLint error: Do not access Object.prototype method 'hasOwnProperty' from target object no-prototype-builtins
Learn how to prevent the "do-not-access-objectprototype-method" error from appearing when building your JavaScript application.
How to determine the screen refresh rate in Hz of the monitor with JavaScript in the browser
Learn how you can easily determine the Screen refresh rate with the help of a little trick in the browser with JavaScript