change title attribute javascript code example Example: change page title js document.title="New Title";