If I use javascript:
document.title="something";
It does work internally.
I have also tried jQuery:
$(this).attr("title", "sometitle");
Which works inside $(document).ready(function(){});
But how can I change the tittle when any event happen? Like click on the button or something like that.