PDA

View Full Version : How to set Page Title in ExtJS



himanshusethi
20 Feb 2015, 3:54 PM
HI

Can someone tell me how can i set page title from extJS. I looked over docs. Couldn't find.

Thanks

skirtle
21 Feb 2015, 3:26 AM
You mean update the HTML title tag?


Ext.query('title')[0].innerHTML = 'New title';

or...


Ext.fly(Ext.query('title')[0]).update('New title');

or ignoring ExtJS altogether...


document.title = 'New title';