Skip to content

Instantly share code, notes, and snippets.

@mileszs
Created March 31, 2009 03:47
Show Gist options
  • Select an option

  • Save mileszs/88037 to your computer and use it in GitHub Desktop.

Select an option

Save mileszs/88037 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>This title and shit</title>
</head>
<body>
<script type="text/javascript">
function someFunc() {
var title = document.title;
var loc = document.location.href;
document.getElementById("tmp-bookmark-link").href = "http://tellmypolitician.com/search?u=" + loc + "&title=" + title;
}
window.onload = function() { someFunc(); }
</script>
<a id="tmp-bookmark-link" href="">The link!</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment