Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

235
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda