Changing the page title with JavaScript

function tabText(text){document.title = text;}