how to make a js snippet that can be reused on remote sites like fb api and tweet feeds
<p>I'm interested in making a js snippet that will allow webmasters to insert a snippet on their site, and then it will create an html element (possibly button) in place, and when clicked post the url and title to my site, and open my site in a new window so the user can see the url + title as a new item on his/her list.</p>

<p>Facebook does this with all their like boxes and twitter with their feeds - but how is this actually done?</p>
