jQuery Mobile Question:

How to control page titles in jQuery Mobile?

Tweet Share WhatsApp

Answer:

When you load the first page of a jQuery Mobile based site, then click a link or submit a form, AJAX is used to pull in the content of the requested page. Having both pages in the DOM is essential to enable the animated page transitions, but one downside of this approach is that the page title is always that of the first page, not the subsequent page you're viewing. To remedy this, jQuery Mobile automatically parses the title of the page pulled via AJAX and changes the title attribute of the parent document to match.

Download jQuery Mobile PDF Read All 77 jQuery Mobile Questions
Previous QuestionNext Question
Why is only the first page of multi page document loaded?Why content injected into a page is not enhanced?