I know that to change the name of the tab in which browser opens the site I need to to change the title tag in the html file.
But in GWT the things are a bit different: each new place uses the same html file, so the browser tab's name will be the same for all the places.
The title tag is an element of your webpage's header that defines the title of a webpage that is used in your browser's tab, favorite links, social sharing previews, and most importantly on search engine results pages (SERPs).
You can alter the title of the page with the following code
Window.setTitle("My Place Name");
Do notice that the place who call this the latest will set its title.
You can change the page title (e.g "Tab Name") by a call to a static function in GWT:
import com.google.gwt.dom.client.Document;
...
public static void setBrowserWindowTitle (String newTitle) {
if (Document.get() != null) {
Document.get().setTitle (newTitle);
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With