How to replace all identical substrings in a string with JavaScript

This time, let’s figure out how to replace all the same substrings in a particular string. Suppose we have a line: var str = “Test abc test test abc test test test abc test test abc”; And our code should replace, for example, all the abc substrings in this line. Using the replace method does …

Navigation with arrows by Javascript

On many sites, pages can be navigated using the keyboard by pressing the ← and → keys, while holding the Ctrl key. What this requires is generally understandable. Somewhere in the code you need to hide the addresses of the previous and next pages and “hang up” the handler at the touch of a key. …

25 Great Navigation Website Designs

I wanted to do a post about 25 Great Navigation Website Designs because there are a lot of websites with beautiful navigations.