Category: Javascript

Javascript trim

In programming, trim is a string manipulation function or algorithm. The most popular variants of the trim function strip only the beginning or end of the string. Typically named ltrim and rtrim respectively. Read more »

Javascript context menu

There are many of context menu examples on the internet. This javascript context menu is very lightweight, OOP based and item-specific. You can setup it in a few seconds.
Read more »

Javascript image preload

How to get rid of the delay that happens when you use multiple images with ‘onmouseover’? Preload all the images.
Read more »

Javascript unselectable text

How to make text in an html page unselectable for the visitors? I don’t know for what reasons you may need this, but here is the code you want, read below.
Read more »

Javascript drag and drop

Ever wanted to drag an element or image on your webpage? You can try using this very lightweight javascript drag handler. You can attach this drag handler to any relative or absolute positioned element.
Read more »