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

236
Visualizações
In Chrome, Window.open yields the desired "popup" window, and an additional unwanted about#blocked tab

So, I have code on that works perfectly in Safari. When the function is called, it creates a sized window to the a fraction of the size of the screen (code at bottom of post). The only issue is that the end-user(internal tool) of this code works in Chrome, and they report strange behavior (that I can replicate in my own machine on Chrome), in which the desired window is present and in the correct size.

However, it also creates an additional, unwanted tab of URL equivalent "about#blocked".

As this point, I'm pretty sure the issue lies in Chrome (and probably its security features) seeing as it does not occur on Safari browser.

Is there anything that I can do, in either code or instructions to the end-user to change their Chrome settings so that this tab does not get generated? Hopefully something that I've overlooked completely, being a Javascript novice.

function openAttachmentInNewWindow(recordIdToOpen) {
                var file_url = '/servlet/servlet.FileDownload?file='+recordIdToOpen;
                var params = [ 'height='+(screen.height/2),
                                'width='+(screen.width*3/4),
                                'Resizeable=yes',
                                'fullscreen=no' // only works in IE, but here for completeness
                            ].join(',');
               window.open(file_url, recordIdToOpen, params);
            }
about 4 years ago · Juan Pablo Isaza
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