Pre-populate an iframe form from another domain

I am trying to fill out a form located in a different domain. I have a form in an iframe, and I remember that javascript does not allow creating cross-domain scripts, so how can I fill out a form located in another domain? Is it possible?

I want to help my users by pre-filling out certain form information that I have already collected on my registration page.

In addition, the iframe'd page has 2 forms, 1 leads to another, so it would be nice if you could fill both of them and emulate the click of a submit button, since everything they need to send is already collected for me, and it seems redundant to enter information twice.

EDIT: since people have confirmed that this is not possible, did you know if there is a way to notify the browser to use autocomplete or the equivalent of filling out FF form or autocomplete IE?

Greetings

+3
source share
3 answers

No, access to forms is not possible.

You can send information to the query string of the URL, and if the page supports it, it can receive this information and put it on the form.

+2
source

You are better off looking for an API or SSO service. Maybe you and another domain company could unite? If you share information and goals, there will certainly be opportunities.

0
source

, . URL- , jsonp script ,

?

0

Source: https://habr.com/ru/post/1772116/


All Articles