0
  1. iframe load the content from src
  2. How to send a xhr request for & from this iframe, loaded content?

Something like this

<iframe src="remote_server.com/upload.php"> xhr = new XMLHttpRequest(); xhr.open("POST, "remote_server.com/upload.php"); xhr.send("data"); </iframe> 

1 Answer 1

1

The content between the start and end tag for the iframe element is alternative content for browsers which do not support iframes.

You need to put your script in a <script> element and put that element in the HTML of the page at remote_server.com/upload.php.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.