A bookmarklet is a small JavaScript program stored as a browser bookmark. When clicked, it runs code to modify a webpage, extract data, or perform quick actions.
javascript:(function() {
alert('Hello World');
document.body.style.backgroundColor = 'lightblue';
})();
Drag the following link to your bookmarks bar to try an example bookmarklet: Click Me!
Simply click the bookmarklet from your bookmarks bar while on any webpage to execute the JavaScript code.