Monday, April 2, 2012

[Joomla] Change Browser Header Text

Ever wonder how to change the browser header text? Most of the time, the header text displays the name or title of the menu item or the component so you only have a limited power to change the text.

You're wrong!

You can change manually the browser header text through this codes:
$document =& JFactory::getDocument();
$document->setTitle('My Header Text Title');

Although you can do it using the traditional way:
  <title>My Header Text Title</title>

But pfft that's an old style.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...