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 638009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:41:09+00:00 2026-05-13T20:41:09+00:00

my site is a design on index.php and then a frame on it.. Now,

  • 0

my site is a design on index.php and then a frame on it.. Now, i want to do so the titles changes When you browse to eg. Videos.php.

So how should i do this with window.parent and title?

The title needs to be changed on index.php.

So cant it be done like on videos.php:

<script>
        window.parent.changeTitle("Videos - Mysite.com"); 
</script>

and then on index.php:

function changeTitle(msg) {
    <title>(msg)</title>
}

just an thought i dont know really..

  • 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-13T20:41:10+00:00Added an answer on May 13, 2026 at 8:41 pm

    Try the following code:

    window.parent.document.title = "Videos - Mysite.com";
    

    Your code won’t work – the function you wrote isn’t even syntactically valid. Plus, adding a title tag after the page has loaded would have no effect – you need to change the document title by updating the document.title attribute.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Information: I have a site that has a design on index.php, and then you
site.com/link?p=2 give $_GET['p']==2 even though i've already made site.com/link rewrite to site.com/index.php?page=link So, i'm
@ /index.php/admin/system_config/edit/section/design/ Does adding to Magento's Miscellaneous scripts field affect every page in the
Here is the structure of the web site: PHP index file //my class for
I'm using PHP and mySQL in a site I design from scratch. When a
I am attempting a mobile first approach to site design. As part of this,
'Android Design' site is recommending 'Boundary feedback' for scrollable view. http://developer.android.com/design/style/touch-feedback.html https://i.stack.imgur.com/TuBkX.png is there
I'm starting out to design a site that has some requirements that I've never
I am trying to design a small site where most of (95%) of site
I want to embed a ShareThis/AddThis button on my site but the site's navigation

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.