“Javascript terbuka jendela” Kode Jawaban

JavaScript Terbuka URL

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

Javascript Buka Jendela Baru

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

Buka JavaScript jendela baru

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

Javascript terbuka jendela

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 Function

<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

Jawaban yang mirip dengan “Javascript terbuka jendela”

Pertanyaan yang mirip dengan “Javascript terbuka jendela”

Lebih banyak jawaban terkait untuk “Javascript terbuka jendela” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya