POST request with saved credentials after page redirect.
Posted on 2014-09-14
I have created a page on wix. Inside of this page I have created "embedded HTML code" (if I correctly translated from russian).
Inside of this HTML code, I want to write JS code which
1. Gets the login from input tag.
2. Gets password from input tag.
3. Goes the the another site.
4. Make POST submit request with the login and password which has been retrieved above.
It seems to me, at the step 3 it goes to another location and so the 4-th step is never run.
Should I assume such analogue that, redirection to another page is like returning from function?