scriptygoddess

14 Feb, 2003

Email this page – bookmarklet

Posted by: Jennifer In: Scripts

Jen asked for a bookmarklet (that would work in Safari!) that would let you email a link of the webpage you were on. Here you go:

email link to this page

(It would be pretty easy to modify this to ask you for the email address you wanted to send it to – but I started to think that wouldn't be neccessary. And even perhaps less useful – in case you were planning on grabbing the email from your address book or something…)

The one above does "prefill" the subject. If you'd rather it not do that, use this one:

email link to this page

Here's one that will grab the name of the page and put it in the subject line:

email link to this page

2 Responses to "Email this page – bookmarklet"

1 | msh

July 27th, 2003 at 2:38 am

Avatar

I've used a similar code in Safari:

javascript:location.href='mailto:?SUBJECT='+document.title+'&BODY='+escape(location.href)

The code seems to work equally well; not sure if there would be any case in which one would be preferred.

To e-mail a highlighted text selection from a web page, I use:

javascript:location.href='mailto:?BODY='+escape(getSelection().replace(/%5Cs/g,'%20').replace(/%20%7B2,%7D/g,'%20'))

Both of these are among the many handy javascript bookmarklets in my Safari bookmarks toolbar.

2 | msh

July 27th, 2003 at 2:45 am

Avatar

Hmm…. Let me try that again with better HTML coding: :)

Send URL

Send Text

(Double hmm…. the above "Send Text" link works fine from my bookmark bar, but not from the link I just created (at least in preview mode) by copy and pasting…. Go figure.)

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements