0

I'm trying to integrate an external form into my application.

The form doesn't have a direct URL to it, so I'm trying to figure out how to do it.

First I've tried to put the homepage URL into an <iframe> , I was hoping to navigate with click() command inside the document of the iframe to arrive to the desired location, the problem was that the document of the iframe resulted to be empty.

I checked HERE and unfortunately I don't have control over the framed site, so this road seems a dead end.

I'm looking for hints, I know there isn't a standard way to do this but as a JS beginner Is difficult taking first steps.

Thanks

Dbase
  • 1
  • This will not be possible if the resource loaded in the iframe is from a different domain. The browser protects against such scripting for the sake of security. – sorak Feb 15 '18 at 16:13

1 Answers1

0

Cross-origin stuff on the WWW usually requires the explicit cooperation of both sites.

If the document is empty, then the most likely reason is that Display is forbidden by X-Frame-Options.

If you can overcome that (you can't), then you'd hit the permission denied to access property problem.

Remote controlling how a browser behaves on a third-party website would be a security problem. You can't do it.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335