The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 5 of 5

Thread: Javascript: Read Title of Another Page

  1. #1

    Javascript: Read Title of Another Page

    Is there a way to do this in Javascript? I have two pages, let's call one js.htm and one title.htm. I want the javascript code in js.htm to print out the <title> of title.htm. Is there a way to do this?

    Edit: And yes, it has to be Javascript.

  2. #2
    Registered User
    ... cookies with strawberries. You should be able to set the cookie and read it from a different page (w/ javascript) so long as they're coming from the same domain
    PHP Code:
    <zip> echo this; </zip

  3. #3
    I don't have access to edit the page that I'm trying to read the title from (and the user won't necessarily have been to the other page anyway)

  4. #4
    home cooking is killing the restaurant industry
    Maybe XMLHttpRequest?

    EDIT: Hmm.. is the page you're trying to read the title from in the same domain as the page that's trying to read it?
    There are only 10 kinds of people in this world:
    Those that might know ternary, those that do, and those that don't
    Say NO to DRM.

  5. #5
    Yes, it is. I'll look into XMLHttpRequest, thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012