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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:46:54+00:00 2026-06-13T08:46:54+00:00

Probably, I know the answer already that there is no way by which I

  • 0

Probably, I know the answer already that there is no way by which I can read the DOM Values of Iframe so that Parent can use it.

I spent lot of time researching about it but can not find any way, hence posting it here.

CONSTRAINTS :

Different Domains, No Control over the iframe url. It can be any URL provided by the user.

WHAT I TRIED SO FAR :

I need the value of the url i.e. window.frames['iframename'].location.href but I am getting permission denied as it violates same origin policy.

HTML5 Post message api wont work as it assumes even if they are cross – domain we have control over the iframe page.

easyXSD also assumes the same I suppose.

Is it possible at all?

NOTE : USER Will Change the SRC from Iframe itself. so I use onload method to do something but not able to access location.href

  • 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-06-13T08:46:55+00:00Added an answer on June 13, 2026 at 8:46 am

    If you have no control over the iframe, then it is not possible since it is a security risk. Notice that you may set the location/url of an iframe/window, but you can not read it (if it is cross domain).

    If you had control over the iframe, then workarounds would be possible (using postMessage, workers or whatever).

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

Sidebar

Related Questions

WCF gurus, you probably already know the answer I cannot find ... let's say
I have this question you probably know the answer... My app is already functional
I know there are several questions similar, but I can't find one that answers
I know answer is probably no, but I would like to be sure, because
I think I probably know that the most common suggestion will be change the
So I think I already know the answer to this question... Running AdventureWorks2008 (latest
Quick questions that probably a piece of cake for someone in the know to
First of all, I know there are already questions and answers about it, this
I think I already know the answer, but I'm going to ask the question
ANSWER: Allright, that was quite simple (probably I made this mistake coz I need

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.