Forum Moderators: open
1)myTitle = document.getElementsByTagName('title').item(0).innerHTML;
2)myTitle = document.getElementById('title').innerHTML;
document.write(myTitle + myVar);
Note: You will have to have an id attribute in your title tag to use the second method(eg. <title id="title">).
Birdman