“window.open” Respostas de código

JavaScript aberto nova janela

<a onclick="window.open(document.URL, '_blank', 'location=yes,height=570,width=520,scrollbars=yes,status=yes');">
Open New Window
</a>
Friendly Hawk

JavaScript Abra a nova janela com conteúdo HTML

var newWin = open('url','windowName','height=300,width=300');
newWin.document.write('html to write...');
Comfortable Cheetah

Javascript Aberta Janela

window.open('page2.html')
Yasin

window.open

<script type="text/javascript">
  function fnc1()
  {
      var a=window.location.href;

      username="p";
      password=1234;
      window.open(a+'?username='+username+'&password='+password,"");

      var url_safe_username = encodeURIComponent(username);
      var url_safe_password = encodeURIComponent(password);
      var url = "http://localhost:8080/login?cid=" + url_safe_username + "&pwd=" + url_safe_password;
      window.open(url);
  }   
</script>
<input type="button" onclick="fnc1()" />
Excited Emu

Window.open função

<script type="text/javascript">
function fnc1()
{
    var a=window.location.href;

    username="p";
    password=1234;
    window.open(a+'?username='+username+'&password='+password,"");

}   
</script>
<input type="button" onclick="fnc1()" />
<input type="text" id="atext"  />
Repulsive Raven

Método aberto de janela para detecção de navegador

browser detection and version dectaction in js
Combative Coyote

Respostas semelhantes a “window.open”

Perguntas semelhantes a “window.open”

Procure respostas de código populares por idioma

Procurar outros idiomas de código