<div id="Box">
<script type="text/javascript">
<!--
var a = (document.title);
var b = (document.location.href);
var c = document.getElementsByTagName('meta');
var description;

for (var x=0,y=c.length; x<y; x++) {
  if (c&#91;x&#93;.name.toLowerCase() == "description") {
    description = c&#91;x&#93;;
  }
}

document.write('<a href="'+b+'">'+a+'<\/a><br />'+description.content+'<br />');
document.write('<span id="green">'+b+'<\/span>');
//-->
</script>
</div>

Source:
http://daydreamingonline.com/demos/javascript/title_and_url/

Pin It on Pinterest

Share This