Dynamic Title Appender
Give feedback in the browser tab. This script captures keyboard input and instantly reflects it in the document title, helping users identify specific tabs.
Look at your browser tab/window title!
Current Document Title:
Copy the Script
<script>
function changeTitle(val) {
if(val == "") {
document.title = "Default Title";
} else {
document.title = val;
}
}
</script>
<input type="text" onkeyup="changeTitle(this.value)" placeholder="Type here...">
Frequently Asked Questions
No. Search engines index the static `` tag in the HTML source. JavaScript title changes are mostly for user experience after the page loads.
Yes. You should store the original title in a variable on page load, then restore it when the input field loses focus (`onblur`).
Yes. `document.title` is a universally supported DOM property in all browsers.