“Javascript Aberta Janela” Respostas de código

JavaScript Open URL

window.location.href = "http://example.com/";
TC5550

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

Abra a nova janela JavaScript

window.open("LINK-HERE");
Undefined

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

Respostas semelhantes a “Javascript Aberta Janela”

Perguntas semelhantes a “Javascript Aberta Janela”

Mais respostas relacionadas para “Javascript Aberta Janela” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código