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

238
Views
Open incognito window on a dynamic Form onsubmit using Chrome extension

I am trying to open a new session with a different URL in an incognito window once someone clicks on a button in a normal window browser.

My button code is this: <button onclick=($('#myForm').submit())>Start new session</button>

My Form is created through JS as given here:

let myForm = document.createElement("FORM")
    myForm.setAttribute('action', 'https://stackoverflow.com/${PassingsomeParameters}/')
    myForm.setAttribute('method', 'POST');
    myForm.setAttribute('id', 'myForm');

let myFormFields = document.createElement("INPUT");
    myForm.setAttribute('name', 'MyToken');
    myForm.setAttribute('value', info.headers['SessionToken']);

myForm.appendChild(myFormFields);
$('body').append(myForm);

I am running these codes through a browser extension and it works fine. I would like to open an incognito window with a new session instead so that I can keep the current normal window session active too.

PS the form has the tokens and other information to login directly to the other page and hence I am using a form here.

Thanks!

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!