Retro code. It was the Internet Explorer way:
document.all.tags('title')[0].text;
Works as deep as Internet Explorer 4.0.