How to create a 'Hello World' bookmarklet in Chrome
- In Chrome, click the three-bar icon in the top right, then 'Bookmarks', then 'Bookmark manager'.
- Right-click the 'Bookmarks bar' folder and select 'Add page'.
- For the 'Name', put 'Hello World!', and for the URL paste in the code below.
- javascript: alert('Hello World!');
- To test the bookmarklet, open a new tab and click the new bookmark.