Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
Open URL In New Tab and Set Input Value

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.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!