Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I reset the title in an HTML page, without reloading?

I am trying to reset the title of the page in JQuery, without having to refresh it. Every place I have looked allows me to use either:

$('title').text('foo');

OR

$(document).attr('title', 'foo2');

Which [apparently] needs a refresh to work properly. I am loading information into a div in the main page and never needing to refresh the page. Does anyone have any ideas? Thanks in advance!

like image 984
Josh Avatar asked Dec 02 '22 02:12

Josh


1 Answers

Not much to do with jquery, except for when (ie handling some event) you decide to change the page title: document.title = 'something';

like image 183
ScottE Avatar answered Mar 24 '23 01:03

ScottE