-3

Seems impossible... maybe theres a genius around here!

jquery only

Community
  • 1
  • 1
Ricky
  • 100
  • 1
  • 1
  • 7

2 Answers2

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