Loop through an array in JavaScript

This article will be very helpful if you are learning the JavaScript programming language and trying to write a custom code that manipulates or reads data in the Arrays. A very common case in web development is that you need to iterate over some items in the array and perform a desired action, for example, …

How To Import and Export Database in MySQL

As a web developer or a site owner, you may need to move the database from one server to another. There may be various reasons for that, for example, your intent is to make a backup, restore the site from last known good state, move a web application from development to production server, or any …

How to undo the last local commit in Git repository

The Git is a very popular version control system, it's widely adopted and almost every professional developer has to know how to use it correctly. Open source web applications and other types of software are very often stored on the public Git repositories, the enterprise and private projects also use this version control system. And, …

Remove specific item from an array in JavaScript

The JavaScript is a very powerful programming language and provides a great support for arrays. There are many different language constructs available that you can use to remove item from an array. This article contains description of only the most popular ways to modify an array, but you can extend and improve them to meet …

HTML button that acts like a link

If you are making some web application and you need to redirect user to another page, you can create a button that will act link a link. Regular <a href="#"> tag may not be suitable in some cases, for example, when you have complex logic or unusual content on a form. This article contains information …

How to redirect to another web page in JavaScript

This article contains information on how to redirect to another page in a programmatic way. This method has both advantages and disadvantages and we will discuses them in detail. Custom client side redirections are useful in situations when you make a web application and the active page must be changed due to some conditions. For …

How to disable text selection highlighting in CSS

Web browsers allow to select text elements on a page, but this may not be the desired option in specific situations. You may want to avoid such behavior when adding buttons, links or any other non-standard elements to your HTML code. You may add the following CSS code to your project and use "disable-select" class …