Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

207
Visualizações
JS, use current screen instead of window.open because of blocking pop up

I am an app developer so I really don't know about web skills.

Among the APIs I am using, there is a structure in which a response comes in a pop-up window when a form submits.

function fnPopup(){
    window.open('', 'popupChk', 'width=500, height=550, top=100, left=100, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no');
    document.form_chk.action = "www.abc.net";
    document.form_chk.target = "popupChk";
    document.form_chk.submit();
}

<form name="form_chk" method="post>
    <input type="hidden" name="m" value="someValue1">               
    <input type="hidden" name="k" value="someValue2">
    <a href="javascript:fnPopup();"> Submit Click</a>
</form>

They seem to have used this method because this API has a structure that the session cannot be disconnected.

However, the pop up blocker is unconditionally default whether it is Chrome or Safari. I want to intercept this popup window information and display it in full screen for iOS app release. Is there a way?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Here is one way you can do this:

<body>
<h1>My Awesome Site!</h1>
</body>
<script>
    // Create a link
    const link = document.createElement("a");
    // Link to a website
    link.href = "https://www.youtube.com/";
    // Append it to the site
    document.body.appendChild(link);
    // Click the link
    link.click();
</script>

Hope this works.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda