So I am working with some code, the code basically need to get 2 things the page url and the title it get's the url ok but the title is not inserting right maybe it is just late here but I can't figure it out.



<a id="myid" href="#">blah</a>

<script type="text/javascript">
document.getElementById('myid').href='http://mysite.com&url='+escape(location.href)+'&title='+escape(location.title)';
</script>