Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7046809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:41:42+00:00 2026-05-28T02:41:42+00:00

How to change my page title <title></title> after content is loaded in #container div?

  • 0

How to change my page title <title></title> after content is loaded in #container div?

$(document).ready(function () {
    $("a.view").live('click', function () {
        var id = $(this).data("id");
        $('#container').load("view.php?" + id);
    });
});

If without .load() I retrieve it by get the id via URL, example view.php?id=1

if (isset($_GET['id'])) {
 $pageid = intval($_GET['id']);
 $select = $db->query('SELECT id, title FROM content WHERE id="'.$id.'"');
 $data   = $db->fetch($select);
 $title  = $data['title'];
}

So in my header.php just call it <title><?php echo $title; ?></title>

If in this case file is load after header.php so how can I create dynamic my page title according to current .load("view.php?" + id)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:41:42+00:00Added an answer on May 28, 2026 at 2:41 am

    You can set the document.title property:

    document.title = "My new title!";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to change cluetip content after the page is loaded. Let's say I
I want to change the height of the fancybox after the content is loaded.I
I have a Youtube clip in a hidden DIV on my page. After the
I need to change a form so that instead of reloading the page after
In the following extJS page, when I click the button, the content of the
How to change the .page width value below, programmatically in the code behind page?
I want to change master page some label value from child page.
I need that on every page change or on some elemetents (a, input[button, submit],
I would like to change the page names of a ASP.NET site to make
I need to redirect users to the Change Password page if their password has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.