0

I have an iframe with a widget inside of it. The source is from a different domain. There is a form on its contents with a submission button. When it is clicked, the page that opens up is within the iframe. My question, which I have researched and haven't found an answer, is this - "Is there any way that I can access that button so that the new page opens in a separate window?"

Thank you for any help you can offer. Stackoverflow Rules.

lennon626
  • 124
  • 6

1 Answers1

1

you can not access an iframes content from another domain directly.

if you have control over the content from the other domain you can setup a messaging system.

additional information can be found here: Cross-domain IFrame DOM properties access from parent's JavaScript

Community
  • 1
  • 1
dreamlab
  • 3,321
  • 20
  • 23