SORU
15 EYLÜL 2010, ÇARŞAMBA


Nasıl bir sayfa Javascript kullanarak yeniden yüklemek için?

Bu sayfa Javascript kullanarak nasıl yükleme yapabilirim? Tüm tarayıcılarda çalışan bir yöntem istiyorum.

CEVAP
15 EYLÜL 2010, ÇARŞAMBA


Javascript 1.0

window.location.href = window.location.pathname;
// creates a history entry

Javascript 1.1

window.location.replace(window.location.pathname);
// does not create a history entry

Javascript 1.2

window.location.reload(false); 
// If we needed to pull the document from
//  the web-server again (such as where the document contents
//  change dynamically) we would pass the argument as 'true'.

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Hak5

    Hak5

    7 EYLÜL 2005
  • Rooster Teeth

    Rooster Teet

    11 Temmuz 2006
  • Santozz Yazz

    Santozz Yazz

    23 Mart 2014