Bagaimana cara me-refresh halaman menggunakan jQuery?

Bagaimana cara me-refresh halaman menggunakan jQuery?

2175

Gunakan location.reload() :

 $('#something').click(function() { location.reload(); }); 

Fungsi reload() mengambil parameter opsional yang dapat Anda atur true untuk memaksa server memuat u>false , sehingga secara default halaman dapat memuat u>

3488
23 марта '11 в 14:57 2011-03-23 14:57 jawabannya diberikan oleh Roy 23 Maret '11 pada 14:57 2011-03-23 ​​14:57

Ini harus bekerja di semua browser bahkan tanpa jQuery:

 location.reload(); 
428
23 марта '11 в 14:57 2011-03-23 14:57 jawabannya diberikan oleh Thorben pada 23 Maret '11 pada 14:57 2011-03-23 ​​14:57

Ada beberapa cara tak terbatas untuk me-refresh halaman menggunakan JavaScript:

  1. location.reload()
  2. history.go(0)
  3. location.href= location.href
  4. location.href= location.pathname
  5. location.replace(location.pathname)
  6. location.reload(false)

    Jika kami perlu mengambil dokumen dari server web lagi (misalnya, ketika konten dokumen berubah secara dinamis), kami akan meneruskan argumen sebagai true .

Anda dapat melanjutkan daftar materi iklan:

  • window.location = window.location
  • window.self.window.self.window.window.location = window.location
  • ... dan 534 jalur lainnya

 button { background: #2ecc71; border: 0; color: white; font-weight: bold; font-family: "Monaco", monospace; padding: 10px; border-radius: 4px; cursor: pointer; transition: background-color 0.5s ease; margin: 2px; } button:hover { background: #27ae60; } 
386
23 июня '13 в 12:47 2013-06-23 12:47 jawabannya diberikan kepada Ionică Bizău pada 23 Juni '13 pada 12:47 2013-06-23 12:47

Banyak cara akan berhasil, saya kira:

  • window.location.reload();
  • history.go(0);
  • window.location.href=window.location.href;
187
23 марта '11 в 14:58 2011-03-23 14:58 jawabannya diberikan oleh David pada 23 Maret '11 di 14:58 2011-03-23 ​​14:58

Untuk memuat u>

 $.ajax({ url: "", context: document.body, success: function(s,x){ $(this).html(s); } }); 

Pendekatan yang saya gunakan adalah Ajax jQuery. Saya mengujinya di Chrome 13. Lalu saya meletakkan kode di handler yang akan menyebabkan reboot. URL "" yang berarti di halaman ini .

117
30 сент. Jawabannya diberikan kepada Peter 30 Sep. 2011-09-30 14:00 '11 pada 14:00 2011-09-30 14:00

Jika halaman saat ini dimuat dengan permintaan POST, Anda dapat menggunakan

 window.location = window.location.pathname; 

bukannya

 window.location.reload(); 

karena window.location.reload() akan meminta konfirmasi jika dipanggil pada halaman yang dimuat dengan permintaan POST.

100
22 июня '12 в 14:58 2012-06-22 14:58 jawabannya diberikan oleh SumairIrshad pada 22 Juni '12 pukul 14:58 2012-06-22 14:58

Pertanyaannya pasti

Cara me-refresh halaman menggunakan javascript

 window.location.href = window.location.href; //This is a possibility window.location.reload(); //Another possiblity history.go(0); //And another 

Anda dimanja oleh pilihan.

59
23 марта '11 в 15:01 2011-03-23 15:01 jawabannya diberikan oleh JohnP 23 Maret '11 pada 15:01 2011-03-23 ​​15:01

Anda bisa menggunakannya

 location.reload(forceGet) 

forceGet adalah logis dan opsional.

Nilai defaultnya salah, yang memuat u>

Setel parameter ini menjadi true jika Anda ingin memaksa browser untuk mendapatkan halaman dari server untuk menghi>

Atau adil

 location.reload() 

jika Anda ingin cepat dan mudah dengan caching.

51
25 июля '13 в 17:27 2013-07-25 17:27 jawabannya diberikan Pinch pada 25 Juli '13 pada 17:27 2013-07-25 17:27

Tiga pendekatan dengan perilaku terkait cache yang berbeda:

  • location.reload(true)

    Di peramban yang menerapkan forcedReload location.reload() , ia reboot, memilih salinan halaman yang baru dan semua sumber dayanya (skrip, style sheet, gambar, dll.). Itu tidak akan melayani sumber daya apa pun dari cache - ia mendapat salinan baru dari server tanpa mengirim header permintaan if-modified-since atau if-none-match .

    Setara dengan pengguna hard-reset di browser jika memungkinkan.

    Perhatikan bahwa pengiriman true to location.reload() didukung di Firefox (lihat MDN ) dan Internet Explorer (lihat MSDN ), tetapi tidak didukung secara universal dan bukan bagian dari spesifikasi W3 HTML 5 , dan W3 adalah draft spesifikasi HTML 5.1 , WHATWG Standar Hidup HTML .

    Di browser yang tidak didukung seperti Google Chrome, location.reload(true) berperilaku sama dengan location.reload() .

  • location.reload() atau location.reload(false)

    Itu memuat u>RFC 7234 melakukan pengecekan u>segar , RFC 7234 memungkinkan browser untuk melayani mereka tanpa memeriksa u>

    Bagaimana tepatnya browser harus menggunakan cache ketika melakukan panggilan ke location.reload() tidak ditentukan atau didokumentasikan, sejauh yang saya tahu; Saya mendefinisikan perilaku di atas dengan bereksperimen.

    Ini setara dengan pengguna hanya dengan mengklik tombol Refresh di browser mereka.

  • location = location (atau tak terhingga banyaknya metode lain yang mungkin terkait dengan menetapkan location atau propertinya)

    Ini hanya berfungsi jika URL halaman tidak mengandung hashing / hashing!

    Muat u>segar apa pun dari cache. Jika halaman HTML itu sendiri baru, ini akan memuat u>

    Ini setara (dalam hal caching) untuk pengguna yang membuka halaman di tab baru.

    Namun, jika URL halaman berisi hash, ini tidak akan berpengaruh.

    Sekali lagi, perilaku caching tidak didefinisikan di sini, sejauh yang saya tahu; Saya mengidentifikasinya dengan pengujian.

Jadi secara umum, Anda ingin menggunakan:

  • location = location untuk memaksimalkan penggunaan cache jika halaman tidak memiliki hash di URL, dalam hal ini tidak akan berfungsi
  • location.reload(true) untuk mendapatkan salinan baru dari semua sumber daya tanpa memeriksa u>location.reload() di beberapa browser seperti Chrome)
  • location.reload() untuk mereproduksi efek pengguna dengan mengklik tombol Refresh secara akurat.
32
14 нояб. Balas diberikan oleh Mark Amery 14 Nov 2015-11-14 14:22 '15 pada 14:22 2015-11-14 14:22

window.location.reload() memuat u>

Jadi, jika Anda hanya ingin memperbarui HTML, window.location = document.URL akan kembali lebih cepat dan dengan lebih sedikit lalu lintas. Tetapi itu tidak akan memuat u>

23
13 окт. jawabannya diberikan oleh user762330 pada 13 Oktober. 2013-10-13 23:32 '13 pada 23:32 2013-10-13 23:32

Anda dapat melakukan tugas ini tanpa menggunakan jQuery window.location.reload(); . Karena ada banyak cara untuk melakukan ini, tetapi saya pikir ini adalah cara yang cocok untuk memuat u>

Anda dapat menggunakan objek Javascript window.location .

  • Dapatkan alamat halaman saat ini (URL).
  • Untuk mengarahkan browser ke halaman lain.
  • Untuk memuat u>

jendela . Objek jendela dalam skrip java adalah jendela terbuka di browser.

lokasi Objek lokasi di skrip java berisi informasi tentang URL saat ini.

Objek lokasi mirip dengan fragmen objek jendela dan dipanggil melalui properti window.location .

Objek lokasi memiliki tiga metode -

  • assign () Digunakan untuk memuat dokumen baru.
  • reload () Digunakan untuk memuat u>
  • replace () Digunakan untuk mengganti dokumen saat ini dengan yang baru.

Jadi, kita perlu menggunakan reload () , karena ini dapat membantu kita memuat u>

Oleh karena itu, gunakan sebagai window.location.reload();

Demo online Jsfiddle

Untuk meminta browser Anda mendapatkan halaman secara >

16
23 дек. Nikhil Agrawal menjawab 23 Des 2013-12-23 12:31 '13 pada 12:31 2013-12-23 12:31

JQuery Load juga dapat menyegarkan halaman:

 $('body').load('views/file.html', function () { $(this).fadeIn(5000); }); 
15
24 июня '13 в 23:08 2013-06-24 23:08 jawabannya diberikan oleh Suleman Mirza pada 24 Juni '13 pada 23:08 2013-06-24 23:08

Berikut adalah solusi yang secara tidak sinkron memuat u>window.location = window.location . Contoh ini menunjukkan halaman yang memuat u>

 <!DOCTYPE html> <html > 

Catatan:

  • Menggunakan $.ajax secara >$.get('',function(data){$(document.body).html(data)}) menyebabkan file css / js mogok , bahkan jika Anda menggunakan cache: true , jadi kami menggunakan parseHTML
  • parseHTML TIDAK akan menemukan tag body sehingga tubuh Anda membutuhkan div tambahan, saya berharap bahwa nugget pengetahuan ini akan membantu Anda suatu hari nanti, Anda dapat menebak bagaimana kami memilih id untuk div ini
  • Gunakan http-equiv="refresh" berjaga-jaga jika terjadi kesalahan dengan hiccup javascript / server, maka halaman MASIH akan dimuat u>
  • Pendekatan ini mungkin entah bagaimana menghibur memori, memperbaiki perbaikan http-equiv itu
13
18 мая '16 в 1:30 2016-05-18 01:30 Balas diberikan oleh William Entriken pada 18 Mei 16 pada 1:30 2016-05-18 01:30

Sebagai pertanyaan umum, mari kita coba merangkum solusi yang mungkin untuk jawaban:

Solusi sederhana untuk javascript sederhana :

Cara termudah adalah solusi satu baris, ditempatkan sesuai:

 location.reload(); 

Fakta bahwa banyak orang hi>https://developer.mozilla.org/en-US / docs / Web / API / Lokasi / reload ).

Metode Location.reload () memuat u>

Ini berarti ada dua cara:

Solusi 1: Ganti memuat u>

 location.reload(true); 

Solusi 2: Reboot dari cache atau server (berdasarkan browser dan konfigurasi Anda)

 location.reload(false); location.reload(); 

Dan jika Anda ingin menggabungkannya dengan jQuery saat mendengarkan suatu acara, saya akan merekomendasikan menggunakan metode ".on ()" daripada ".click" atau pembungkus acara lainnya, misalnya. solusi yang lebih baik adalah:

 $('#reloadIt').on('eventXyZ', function() { location.reload(true); }); 
12
02 окт. jawabannya diberikan ke 2 Oktober. 2015-10-02 12:25 '15 jam 12:25 2015-10-02 12:25

Saya menemukan

 window.location.href = ""; 

atau

 window.location.href = null; 

juga memperbarui halaman.

Ini membuatnya mudah untuk memuat u>

11
15 сент. Jawabannya diberikan oleh Mujah Maskey 15 Sep. 2016-09-15 19:04 '16 pada 19:04 2016-09-15 19:04
 <html> <head> <title>Refresh a page in jQuery</title> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> </head> <body> <button id="PageRefresh">Refresh a Page in jQuery</button> <script type="text/javascript"> $('#PageRefresh').click(function() { location.reload(); }); </script> </body> </html> 
8
02 дек. Jawabannya diberikan oleh Jinesh 02 Des. 2017-12-02 23:45 '17 pada 23:45 2017-12-02 23:45

Anda tidak memerlukan apa pun dari jQuery untuk memuat u>javascript murni , cukup gunakan fungsi reload pada properti lokasi sebagai berikut:

 window.location.reload(); 

Secara default, ini akan memuat u>

Jika Anda ingin memuat u>sebenarnya untuk memuat u>

 window.location.reload(true); 

Selain itu, jika Anda sudah berada di panel , Anda dapat menyingkirkan jendela dan melakukan:

 location.reload(); 
5
27 мая '18 в 7:53 2018-05-27 07:53 jawaban diberikan oleh Alireza pada 27 Mei '18 jam 7:53 2018-05-27 07:53

Anda dapat menggunakan metode JavaScript location.reload() . Metode ini mengambil parameter boolean. true atau false . Jika parameternya true ; halaman selalu dimuat u>false ; yang secara default atau dengan browser parameter yang kosong memuat u>

Dengan parameter yang true

 <button type="button" onclick="location.reload(true);">Reload page</button> 

Dengan default / false

  <button type="button" onclick="location.reload();">Reload page</button> 

Menggunakan jquery

 <button id="Reloadpage">Reload page</button> <script type="text/javascript"> $('#Reloadpage').click(function() { location.reload(); }); </script> 
5
05 марта '18 в 20:18 2018-03-05 20:18 membalas Poorna Senani Gamage pada 05 Maret '18 pukul 20:18. 2018-03-05 20:18

500 cara lain untuk memuat u>

 location = location location = location.href location = window.location location = self.location location = window.location.href location = self.location.href location = location['href'] location = window['location'] location = window['location'].href location = window['location']['href'] location = window.location['href'] location = self['location'] location = self['location'].href location = self['location']['href'] location = self.location['href'] location.assign(location) location.replace(location) window.location.assign(location) window.location.replace(location) self.location.assign(location) self.location.replace(location) location['assign'](location) location['replace'](location) window.location['assign'](location) window.location['replace'](location) window['location'].assign(location) window['location'].replace(location) window['location']['assign'](location) window['location']['replace'](location) self.location['assign'](location) self.location['replace'](location) self['location'].assign(location) self['location'].replace(location) self['location']['assign'](location) self['location']['replace'](location) location.href = location location.href = location.href location.href = window.location location.href = self.location location.href = window.location.href location.href = self.location.href location.href = location['href'] location.href = window['location'] location.href = window['location'].href location.href = window['location']['href'] location.href = window.location['href'] location.href = self['location'] location.href = self['location'].href location.href = self['location']['href'] location.href = self.location['href'] location.assign(location.href) location.replace(location.href) window.location.assign(location.href) window.location.replace(location.href) self.location.assign(location.href) self.location.replace(location.href) location['assign'](location.href) location['replace'](location.href) window.location['assign'](location.href) window.location['replace'](location.href) window['location'].assign(location.href) window['location'].replace(location.href) window['location']['assign'](location.href) window['location']['replace'](location.href) self.location['assign'](location.href) self.location['replace'](location.href) self['location'].assign(location.href) self['location'].replace(location.href) self['location']['assign'](location.href) self['location']['replace'](location.href) window.location = location window.location = location.href window.location = window.location window.location = self.location window.location = window.location.href window.location = self.location.href window.location = location['href'] window.location = window['location'] window.location = window['location'].href window.location = window['location']['href'] window.location = window.location['href'] window.location = self['location'] window.location = self['location'].href window.location = self['location']['href'] window.location = self.location['href'] location.assign(window.location) location.replace(window.location) window.location.assign(window.location) window.location.replace(window.location) self.location.assign(window.location) self.location.replace(window.location) location['assign'](window.location) location['replace'](window.location) window.location['assign'](window.location) window.location['replace'](window.location) window['location'].assign(window.location) window['location'].replace(window.location) window['location']['assign'](window.location) window['location']['replace'](window.location) self.location['assign'](window.location) self.location['replace'](window.location) self['location'].assign(window.location) self['location'].replace(window.location) self['location']['assign'](window.location) self['location']['replace'](window.location) self.location = location self.location = location.href self.location = window.location self.location = self.location self.location = window.location.href self.location = self.location.href self.location = location['href'] self.location = window['location'] self.location = window['location'].href self.location = window['location']['href'] self.location = window.location['href'] self.location = self['location'] self.location = self['location'].href self.location = self['location']['href'] self.location = self.location['href'] location.assign(self.location) location.replace(self.location) window.location.assign(self.location) window.location.replace(self.location) self.location.assign(self.location) self.location.replace(self.location) location['assign'](self.location) location['replace'](self.location) window.location['assign'](self.location) window.location['replace'](self.location) window['location'].assign(self.location) window['location'].replace(self.location) window['location']['assign'](self.location) window['location']['replace'](self.location) self.location['assign'](self.location) self.location['replace'](self.location) self['location'].assign(self.location) self['location'].replace(self.location) self['location']['assign'](self.location) self['location']['replace'](self.location) window.location.href = location window.location.href = location.href window.location.href = window.location window.location.href = self.location window.location.href = window.location.href window.location.href = self.location.href window.location.href = location['href'] window.location.href = window['location'] window.location.href = window['location'].href window.location.href = window['location']['href'] window.location.href = window.location['href'] window.location.href = self['location'] window.location.href = self['location'].href window.location.href = self['location']['href'] window.location.href = self.location['href'] location.assign(window.location.href) location.replace(window.location.href) window.location.assign(window.location.href) window.location.replace(window.location.href) self.location.assign(window.location.href) self.location.replace(window.location.href) location['assign'](window.location.href) location['replace'](window.location.href) window.location['assign'](window.location.href) window.location['replace'](window.location.href) window['location'].assign(window.location.href) window['location'].replace(window.location.href) window['location']['assign'](window.location.href) window['location']['replace'](window.location.href) self.location['assign'](window.location.href) self.location['replace'](window.location.href) self['location'].assign(window.location.href) self['location'].replace(window.location.href) self['location']['assign'](window.location.href) self['location']['replace'](window.location.href) self.location.href = location self.location.href = location.href self.location.href = window.location self.location.href = self.location self.location.href = window.location.href self.location.href = self.location.href self.location.href = location['href'] self.location.href = window['location'] self.location.href = window['location'].href self.location.href = window['location']['href'] self.location.href = window.location['href'] self.location.href = self['location'] self.location.href = self['location'].href self.location.href = self['location']['href'] self.location.href = self.location['href'] location.assign(self.location.href) location.replace(self.location.href) window.location.assign(self.location.href) window.location.replace(self.location.href) self.location.assign(self.location.href) self.location.replace(self.location.href) location['assign'](self.location.href) location['replace'](self.location.href) window.location['assign'](self.location.href) window.location['replace'](self.location.href) window['location'].assign(self.location.href) window['location'].replace(self.location.href) window['location']['assign'](self.location.href) window['location']['replace'](self.location.href) self.location['assign'](self.location.href) self.location['replace'](self.location.href) self['location'].assign(self.location.href) self['location'].replace(self.location.href) self['location']['assign'](self.location.href) self['location']['replace'](self.location.href) location['href'] = location location['href'] = location.href location['href'] = window.location location['href'] = self.location location['href'] = window.location.href location['href'] = self.location.href location['href'] = location['href'] location['href'] = window['location'] location['href'] = window['location'].href location['href'] = window['location']['href'] location['href'] = window.location['href'] location['href'] = self['location'] location['href'] = self['location'].href location['href'] = self['location']['href'] location['href'] = self.location['href'] location.assign(location['href']) location.replace(location['href']) window.location.assign(location['href']) window.location.replace(location['href']) self.location.assign(location['href']) self.location.replace(location['href']) location['assign'](location['href']) location['replace'](location['href']) window.location['assign'](location['href']) window.location['replace'](location['href']) window['location'].assign(location['href']) window['location'].replace(location['href']) window['location']['assign'](location['href']) window['location']['replace'](location['href']) self.location['assign'](location['href']) self.location['replace'](location['href']) self['location'].assign(location['href']) self['location'].replace(location['href']) self['location']['assign'](location['href']) self['location']['replace'](location['href']) window['location'] = location window['location'] = location.href window['location'] = window.location window['location'] = self.location window['location'] = window.location.href window['location'] = self.location.href window['location'] = location['href'] window['location'] = window['location'] window['location'] = window['location'].href window['location'] = window['location']['href'] window['location'] = window.location['href'] window['location'] = self['location'] window['location'] = self['location'].href window['location'] = self['location']['href'] window['location'] = self.location['href'] location.assign(window['location']) location.replace(window['location']) window.location.assign(window['location']) window.location.replace(window['location']) self.location.assign(window['location']) self.location.replace(window['location']) location['assign'](window['location']) location['replace'](window['location']) window.location['assign'](window['location']) window.location['replace'](window['location']) window['location'].assign(window['location']) window['location'].replace(window['location']) window['location']['assign'](window['location']) window['location']['replace'](window['location']) self.location['assign'](window['location']) self.location['replace'](window['location']) self['location'].assign(window['location']) self['location'].replace(window['location']) self['location']['assign'](window['location']) self['location']['replace'](window['location']) window['location'].href = location window['location'].href = location.href window['location'].href = window.location window['location'].href = self.location window['location'].href = window.location.href window['location'].href = self.location.href window['location'].href = location['href'] window['location'].href = window['location'] window['location'].href = window['location'].href window['location'].href = window['location']['href'] window['location'].href = window.location['href'] window['location'].href = self['location'] window['location'].href = self['location'].href window['location'].href = self['location']['href'] window['location'].href = self.location['href'] location.assign(window['location'].href) location.replace(window['location'].href) window.location.assign(window['location'].href) window.location.replace(window['location'].href) self.location.assign(window['location'].href) self.location.replace(window['location'].href) location['assign'](window['location'].href) location['replace'](window['location'].href) window.location['assign'](window['location'].href) window.location['replace'](window['location'].href) window['location'].assign(window['location'].href) window['location'].replace(window['location'].href) window['location']['assign'](window['location'].href) window['location']['replace'](window['location'].href) self.location['assign'](window['location'].href) self.location['replace'](window['location'].href) self['location'].assign(window['location'].href) self['location'].replace(window['location'].href) self['location']['assign'](window['location'].href) self['location']['replace'](window['location'].href) window['location']['href'] = location window['location']['href'] = location.href window['location']['href'] = window.location window['location']['href'] = self.location window['location']['href'] = window.location.href window['location']['href'] = self.location.href window['location']['href'] = location['href'] window['location']['href'] = window['location'] window['location']['href'] = window['location'].href window['location']['href'] = window['location']['href'] window['location']['href'] = window.location['href'] window['location']['href'] = self['location'] window['location']['href'] = self['location'].href window['location']['href'] = self['location']['href'] window['location']['href'] = self.location['href'] location.assign(window['location']['href']) location.replace(window['location']['href']) window.location.assign(window['location']['href']) window.location.replace(window['location']['href']) self.location.assign(window['location']['href']) self.location.replace(window['location']['href']) location['assign'](window['location']['href']) location['replace'](window['location']['href']) window.location['assign'](window['location']['href']) window.location['replace'](window['location']['href']) window['location'].assign(window['location']['href']) window['location'].replace(window['location']['href']) window['location']['assign'](window['location']['href']) window['location']['replace'](window['location']['href']) self.location['assign'](window['location']['href']) self.location['replace'](window['location']['href']) self['location'].assign(window['location']['href']) self['location'].replace(window['location']['href']) self['location']['assign'](window['location']['href']) self['location']['replace'](window['location']['href']) window.location['href'] = location window.location['href'] = location.href window.location['href'] = window.location window.location['href'] = self.location window.location['href'] = window.location.href window.location['href'] = self.location.href window.location['href'] = location['href'] window.location['href'] = window['location'] window.location['href'] = window['location'].href window.location['href'] = window['location']['href'] window.location['href'] = window.location['href'] window.location['href'] = self['location'] window.location['href'] = self['location'].href window.location['href'] = self['location']['href'] window.location['href'] = self.location['href'] location.assign(window.location['href']) location.replace(window.location['href']) window.location.assign(window.location['href']) window.location.replace(window.location['href']) self.location.assign(window.location['href']) self.location.replace(window.location['href']) location['assign'](window.location['href']) location['replace'](window.location['href']) window.location['assign'](window.location['href']) window.location['replace'](window.location['href']) window['location'].assign(window.location['href']) window['location'].replace(window.location['href']) window['location']['assign'](window.location['href']) window['location']['replace'](window.location['href']) self.location['assign'](window.location['href']) self.location['replace'](window.location['href']) self['location'].assign(window.location['href']) self['location'].replace(window.location['href']) self['location']['assign'](window.location['href']) self['location']['replace'](window.location['href']) self['location'] = location self['location'] = location.href self['location'] = window.location self['location'] = self.location self['location'] = window.location.href self['location'] = self.location.href self['location'] = location['href'] self['location'] = window['location'] self['location'] = window['location'].href self['location'] = window['location']['href'] self['location'] = window.location['href'] self['location'] = self['location'] self['location'] = self['location'].href self['location'] = self['location']['href'] self['location'] = self.location['href'] location.assign(self['location']) location.replace(self['location']) window.location.assign(self['location']) window.location.replace(self['location']) self.location.assign(self['location']) self.location.replace(self['location']) location['assign'](self['location']) location['replace'](self['location']) window.location['assign'](self['location']) window.location['replace'](self['location']) window['location'].assign(self['location']) window['location'].replace(self['location']) window['location']['assign'](self['location']) window['location']['replace'](self['location']) self.location['assign'](self['location']) self.location['replace'](self['location']) self['location'].assign(self['location']) self['location'].replace(self['location']) self['location']['assign'](self['location']) self['location']['replace'](self['location']) self['location'].href = location self['location'].href = location.href self['location'].href = window.location self['location'].href = self.location self['location'].href = window.location.href self['location'].href = self.location.href self['location'].href = location['href'] self['location'].href = window['location'] self['location'].href = window['location'].href self['location'].href = window['location']['href'] self['location'].href = window.location['href'] self['location'].href = self['location'] self['location'].href = self['location'].href self['location'].href = self['location']['href'] self['location'].href = self.location['href'] location.assign(self['location'].href) location.replace(self['location'].href) window.location.assign(self['location'].href) window.location.replace(self['location'].href) self.location.assign(self['location'].href) self.location.replace(self['location'].href) location['assign'](self['location'].href) location['replace'](self['location'].href) window.location['assign'](self['location'].href) window.location['replace'](self['location'].href) window['location'].assign(self['location'].href) window['location'].replace(self['location'].href) window['location']['assign'](self['location'].href) window['location']['replace'](self['location'].href) self.location['assign'](self['location'].href) self.location['replace'](self['location'].href) self['location'].assign(self['location'].href) self['location'].replace(self['location'].href) self['location']['assign'](self['location'].href) self['location']['replace'](self['location'].href) self['location']['href'] = location self['location']['href'] = location.href self['location']['href'] = window.location self['location']['href'] = self.location self['location']['href'] = window.location.href self['location']['href'] = self.location.href self['location']['href'] = location['href'] self['location']['href'] = window['location'] self['location']['href'] = window['location'].href self['location']['href'] = window['location']['href'] self['location']['href'] = window.location['href'] self['location']['href'] = self['location'] self['location']['href'] = self['location'].href self['location']['href'] = self['location']['href'] self['location']['href'] = self.location['href'] location.assign(self['location']['href']) location.replace(self['location']['href']) window.location.assign(self['location']['href']) window.location.replace(self['location']['href']) self.location.assign(self['location']['href']) self.location.replace(self['location']['href']) location['assign'](self['location']['href']) location['replace'](self['location']['href']) window.location['assign'](self['location']['href']) window.location['replace'](self['location']['href']) window['location'].assign(self['location']['href']) window['location'].replace(self['location']['href']) window['location']['assign'](self['location']['href']) window['location']['replace'](self['location']['href']) self.location['assign'](self['location']['href']) self.location['replace'](self['location']['href']) self['location'].assign(self['location']['href']) self['location'].replace(self['location']['href']) self['location']['assign'](self['location']['href']) self['location']['replace'](self['location']['href']) self.location['href'] = location self.location['href'] = location.href self.location['href'] = window.location self.location['href'] = self.location self.location['href'] = window.location.href self.location['href'] = self.location.href self.location['href'] = location['href'] self.location['href'] = window['location'] self.location['href'] = window['location'].href self.location['href'] = window['location']['href'] 
5
ответ дан stalinrajindian 02 дек. '17 в 23:45 2017-12-02 23:45