A bookmarklet is a type of bookmark that contains code which allows users to perform an action. Instead of storing a web address, a bookmarklet uses a piece of JavaScript code to perform an action when you click on it. A bookmarklet anchors itself to the bookmark folder and can be added to the browser bar for easier access.