I am working on a website at my job and we have run into an issue with our API vendors documentation being very much out of date and their support not being super helpful answering questions.
I was wondering if it is at all possible to open a URL in a new tab and then populate an input field in the code in the new tab.
The issue is the URL is not a site I have access to the code, which I am sure makes this impossible, but was curious if there way a way to at least try.
I have read about postMessage and Broadcast Channels but they both seem to need access to both code bases which I do not have.
What I have so far
So far my code is bound to a click event as such
var newTab = window.open('URL', '_blank');
var searchField = newTab.document;
console.log(searchField);
I am trying to pass a data-value to an input on the page that opens in the new tab, but I do not have access to the code base for that site.