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

  • bobono1baby

    bobono1baby

    14 AĞUSTOS 2011
  • Google Chrome

    Google Chrom

    1 EYLÜL 2008
  • TheDailyTechDose

    TheDailyTech

    15 EKİM 2012