<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Javascript on MarkJacobsen.net</title><link>https://markjacobsen.net/tags/javascript/</link><description>Recent content in Javascript on MarkJacobsen.net</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Fri, 26 Jan 2018 13:41:00 +0000</lastBuildDate><atom:link href="https://markjacobsen.net/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title>Email Bookmarklets</title><link>https://markjacobsen.net/2018/01/email-bookmarklets/</link><pubDate>Fri, 26 Jan 2018 13:41:00 +0000</pubDate><guid>https://markjacobsen.net/2018/01/email-bookmarklets/</guid><description>&lt;p&gt;Ever want an easy way to email a webpage to yourself? Maybe it’s to send it to your task list, or just to share with a co-worker? Of course there are extensions for most browsers to do this, but if you would prefer a bookmarklet that doesn’t require any installation, here’s how to do it. This is the basic link structure…&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;javascript:document.location='mailto:?subject='+document.title+'&amp;amp;body='+escape(document.location);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Or, for simplicity sake, just drag and drop this link into your bookmarks bar… [Email][1]&lt;/p&gt;
&lt;p&gt;Of course you can go wild and start customizing the URL to your hearts content. Set a value after the “mailto:”, or maybe even a CC. For example…&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;javascript:document.location='mailto:me@here.com?subject='+document.title+'&amp;amp;cc=you@there.com&amp;amp;body='+escape(document.location);[1]: javascript:document.location='mailto:?subject='+document.title+'&amp;amp;body='+escape(document.location);
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>