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

  • Howcast

    Howcast

    4 EKİM 2007
  • RD

    RD

    19 NİSAN 2006
  • TecNoob

    TecNoob

    15 AĞUSTOS 2013