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

201
Visualizações
opening website in pop up with fixed width and height error

I have the following webpage which displays a terminal. You type in the bottom bar (e.g. help) and a response is output.

Test input: /unsolvedproblems

If you enter the above, you notice the output includes a hyperlink. I have tried various things to get the link to open not just in a new tab but in a pop up window with a fixed width and height.

The relevant part of the code is here:

} else if (input.value === "/unsolvedproblems" || input.value==="unsolvedproblems") {
      matrixEffect();
      clearCommand();
      textArea.innerHTML += "<br><br>--------Greatest unsolved problems--------<br><br>Here is a list of the greatest <a href='https://en.wikipedia.org/wiki/Lists_of_unsolved_problems' target=_'blank'><strong><u>unsolved problems</u></strong></a> in the world (check out the ones on Computer Science!)";

I have tried:

<a href=onclick="window.open'https://en.wikipedia.org/wiki/Lists_of_unsolved_problems' target=_'blank' 'width=600,height=600'>

and a few other options and keep getting errors.

The whole code (trinket is here) https://trinket.io/html/c979638f8e?runMode=autorun

I also tried this, again with errors:

     } else if (input.value === "/bye" || input.value==="bye") {
      matrixEffect();
      clearCommand();
      textArea.innerHTML += "<br><br>--------Goodbye!--------<br><br>Have a good day! <a href="https:www.google.com" 
  target="popup" 
  onclick="window.open('https:www.google.com','popup','width=600,height=600,scrollbars=no,resizable=no'); return false;">
    Open Link in Popup
</a>";
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Are you asking how to open a link in a popup window? If you are then you could try this.

<input type="button" value="Open popup" onclick="window.open('https://en.wikipedia.org/wiki/Lists_of_unsolved_problems','popUpWindow','height=500,width=700,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');">
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