“window.open” Kode Jawaban

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

Javascript Buka jendela baru dengan konten HTML

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

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

Metode terbuka jendela untuk deteksi browser

browser detection and version dectaction in js
Combative Coyote

Jawaban yang mirip dengan “window.open”

Pertanyaan yang mirip dengan “window.open”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya