$(document).prop('title', 'test');
This is simply a JQuery wrapper for:
document.title = 'test';
To add a > periodically you can do:
function changeTitle() {
var title = $(document).prop('title');
if (title.indexOf('>>>') == -1) {
setTimeout(changeTitle, 3000);
$(document).prop('title', '>'+title);
}
}
changeTitle();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…