yes I agree with @sidyll. Apparently, 80% of jQuery users are no longer JavaScript, so they sometimes try to use javascript concepts.
but you can do with jquery like:
<script type="text/javascript"> $(function(){ $('#changeTitle').click(function(){ $('title').html('New title'); }); }); </script>
source share