SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to get url of topmost page

    there is webpage that has another page in it as iframe and that page has an iframe in which my page is loaded
    i need to get the url of topmost page from my script
    i tried using document.referrer to get the url but it only gives the url of the page that has my page loaded as iframe but does not give me the url of the topmost page
    since it is cross domain i cant use top.location
    i read some examples of xmlhttprequest but dont know how to implement it
    i need the url of the topmost page in cross domain scenario
    can u help me

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Location
    San Francisco, CA
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't think it's possible ...
    Comments, Review, Forum Widgets: http://www.nuharbor.com


Bookmarks

Posting Permissions

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