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

  • BlackBoxTV

    BlackBoxTV

    7 Mayıs 2007
  • Epic Tutorials for iPhone, iPad and iOS

    Epic Tutoria

    18 EYLÜL 2011
  • TecNoob

    TecNoob

    15 AĞUSTOS 2013