<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>