How to Add the Gmail This Bookmarklet to Chrome

Quickly email any URL with this JavaScript code

Close-Up Of Books On Table
Lisa Kehoffer / EyeEm / Getty Images

If you like to send web page links via Gmail, then you'll love the Gmail This bookmarklet. 

A bookmarklet is a snippet of JavaScript code that can run in your browser. There are bookmarklets available to do all sorts of things. Gmail This makes it a lot easier to email a website link, given that the alternative method is to copy the link manually, open Gmail, compose a new message, paste the URL, add the recipient name(s), and choose an appropriate subject line.

Gmail This composes the message automatically, complete with the URL and website title pre-written in the subject line.

How to Install Gmail This in Chrome

Follow these steps to get Gmail This ready to use.

  1. Open Chrome, then open the Bookmark Manager by pressing Ctrl+Shift+B on your keyboard.

  2. In the upper-right corner, select the three-dot icon.

    Chrome Bookmark Manager with the menu highlighted
  3. From the menu, choose Add new bookmark.

    Chrome menu with the Add new bookmark command highlighted
  4. In the Add bookmark dialog box, type a name for the bookmarklet.

    Add Bookmark window with the Name field highlighted
  5. In the "URL" section, paste the code shown here: 

    javascript:(function(){popw='';Q='';d=document;w=window;if(d.selection){Q=d.selection.createRange().text;}else if(w.getSelection){Q=w.getSelection();}else if(d.getSelection){Q=d.getSelection();}popw=w.open('http://mail.google.com/mail/s?view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(d.title)+'&body='+encodeURIComponent(Q)+escape('%5Cn%5Cn')+encodeURIComponent(d.location)+'&zx=RANDOMCRAP&shva=1&disablechatbrowsercheck=1&ui=1','gmailForm','scrollbars=yes,width=680,height=575,top=175,left=75,status=no,resizable=yes');if(!d.all)setTimeout(function(){popw.focus();},50);})();

    Copy this JavaScript code from JSFiddle if the bookmarklet doesn't work with the code you see above.

    Add Bookmark window in Chrome with the URL field highlighted
  6. Select Save.

    Add Bookmark menu in Chrome with the Save button highlighted
  7. The bookmarklet appears in your bookmarks bar, alongside your other bookmarks.

    Chrome with a Gmail This bookmarklet highlighted

How to Use Gmail This

Use the following steps when you're ready to send a URL via Gmail.

  1. Make sure you're logged into Gmail.

  2. In your browser, navigate to the URL you want to email.

  3. Select the bookmarklet.

    Chrome with a bookmarklet highlighted
  4. A new Gmail message opens. By default, the page's title is set as the subject, and the link appears in the message body.

    Chrome with new Gmail message displayed
  5. Add recipient name(s), make any edits you want, then select Send.

    A Gmail message open in Chrome with the Send button highlighted