0

Suppose I have a scenario where I have no control over a web page A, which has an input field that users can fill out. On the other hand, I have a web page B under my control which runs JavaScript. Is there a way to add JavaScript to page B so that it can load page A, wait for it to finish loading, and then automatically fill in the value of the input field with a certain value?

5
  • simply add a query ?someValue=inputValueHere and on page B just check for this query stackoverflow.com/questions/66392987/… duplicate of this i guess Commented May 3, 2023 at 7:57
  • You are not allowed to run your JavaScript on the other domain, except if they implement loading JavaScript from your server. Sometimes forms allow you to use GET request parameters, like ?name=Joe to be in the URL. Commented May 3, 2023 at 7:57
  • So say web page A is the page of a bank with a bank transfer form. If this were allowed, you'd be able to just transfer money without the user knowing. Commented May 3, 2023 at 8:00
  • @ZhivkoNikolov OP mentions that they don't have control over web page A. Commented May 3, 2023 at 8:01
  • @Ivar well now I see, this is impossible. Commented May 3, 2023 at 8:05

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.