May 4th, 202521560You can use the date function to generate a date string of your desired format. As a second parameter, you can add a UNIX timestamp representing the date that you wish...
May 4th, 20253828Math.random() - generates a randon number between 0 and 1. You can multiply the number to get a number in a different range.
Math.floor(numberHere) - it would trim...
May 1st, 202531630
Show image before the upload is a requirement of every web application to give good user experience. We published a tutorial that doesn't work in all browsers so;...
May 1st, 2025814110
In this tutorial I will show you how to compress images before upload to server, usually we don't compress images and upload them directly to server and then compress...
May 1st, 202545869I have found a good mobile based swipe tab here and really loved it so now I am sharing it with you. Its very simple and very useful tutorial you can use these tabs in...
May 1st, 202541905In PHP, there are a variety of ways in which you can sanitize the user input, depending on your needs. The htmlspecialchars function allows you to transform every...
April 30th, 202541991Javascript is a powerful programming language that allows developers to create dynamic and interactive web applications. When it comes to declaring variables, developers...
April 30th, 2025123694In JavaScript, we can use MediaDevices and the MediaDevices and MediaRecorder interfaces to record the user's screen.
The MediaDevices interface prompts users to...
April 30th, 202521107Use objects/classes to encapsulate your application logic and try not to pollute the global variable scope as this can cause frustrating problems such as libraries not...