Animated Title
Make your browser tab stand out. This script updates the document.title property on a timer, creating a scrolling marquee or flashing effect in the tab bar.
Look at your browser tab's name!
Copy the Script
<script>
var msg = "Welcome to Java-Scripts.net! ";
function scrollTitle() {
msg = msg.substring(1, msg.length) + msg.substring(0, 1);
document.title = msg;
}
setInterval(scrollTitle, 200);
</script>
Frequently Asked Questions
Yes, setting `document.title` is a universal standard. However, some modern browsers truncate long titles, so scrolling effects might get cut off.
It can be. Rapid scrolling can distract users. It is best used for slow, subtle alerts (like '1 New Message') rather than constant movement.
Yes. You can use the `window.onfocus` event to clear the interval and reset the static title when the user clicks back to your tab.