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

  • Andytokkallos

    Andytokkallo

    27 Kasım 2007
  • pendrop gaming

    pendrop gami

    4 ŞUBAT 2013
  • Tek Syndicate

    Tek Syndicat

    23 Temmuz 2008