I will show in this short article how to add “scroll to top” button or arrow. This is a popular solution used on blogs or “one page” websites – so in situation when web page has a long content, which require a lot of scrolling, then user has easy option to go smoothly to top…
Category: tips front-end

JavaScript: Adblock check
If you are running a website, you must know how annoying are AdBlock users. You try to give the best possible content for your users for free and you want simply to earn some money by external advertising services like Google Adsense, but AdBlock users are constantly minimizing your incomes. So… JUST CHECK IF USER…

JavaScript: check if variable is object or array
🠗 Skip reading – scroll down to solution 🠗 Why it is so important to verify if variable is an object or array? In JavaScript it is easy to be fooled. The same is with objects and arrays. Often we must check if some variable is object or array. Short example – we receive some…