Seems impossible... maybe theres a genius around here!
Asked
Active
Viewed 177 times
-3
-
"Maybe there's a genius around here!" - made be legitimately spit-take. Good on you, bud! – tekknolagi Jul 15 '12 at 06:47
-
Along with @Blender, I'd love to know what you tried. – tekknolagi Jul 15 '12 at 06:47
-
Also, http://stackoverflow.com/questions/1500554/is-there-a-way-using-jquery-to-change-the-document-title-after-the-page-has-lo?rq=1 – tekknolagi Jul 15 '12 at 06:48
-
And http://stackoverflow.com/questions/180103/jquery-how-to-change-title-of-document-during-ready?lq=1 – tekknolagi Jul 15 '12 at 06:48
-
Even http://stackoverflow.com/questions/6601163/jquery-change-pages-title-when-user-in-a-different-tab?lq=1 – tekknolagi Jul 15 '12 at 06:49
-
Might wanna open up your page in Chrome and see the console for errors, then. – tekknolagi Jul 15 '12 at 15:55
2 Answers
3
There is no need for jQuery. I'm only using it because it's easier to bind events with it:
$('#your-link').on('click', function(event) {
event.preventDefault();
document.title = 'The new title';
});
Also, out of curiosity, what have you tried?

Blender
- 289,723
- 53
- 439
- 496
0
$(document).ready(function(){
$('a').click(function(){
$('head title').text('HelloWorld');
});
});
and might need html like this
<a href="#">Click here to change title</a>

Sam
- 1,112
- 3
- 14
- 21