SORU
16 AĞUSTOS 2011, Salı


Pencere.konum:href Pencere.() açık JavaScript yöntemleri

JavaScript window.location.href window.open () yöntemleri arasındaki fark nedir?

CEVAP
16 AĞUSTOS 2011, Salı


window.location.hrefdeğilbir yöntem, geçerli tarayıcı URL yerini söyleyecek bir özellik. Özellik değerini değiştirme sayfasına yönlendirecektir.

window.open() Bu yeni bir pencerede açmak istediğiniz bir URL geçirebilirsiniz bir yöntemdir. Örneğin:

pencere.konum:örnek href:

window.location.href = 'http://www.google.com'; //Will take you to Google.

pencere.() açık örnek:

window.open('http://www.google.com'); //This will open Google in a new window.

< / ^ hr . Ek Bilgi:

window.open() ek parametreleri geçirilebilir. Bakın: window.open tutorial

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • BaaaStuds's channel

    BaaaStuds's

    10 Mart 2009
  • colacas

    colacas

    29 EKİM 2006
  • REK Roth Productions

    REK Roth Pro

    8 Ocak 2011