¿Cómo actualizar la página usando jQuery?

¿Cómo actualizar la página usando jQuery?

2175
23 марта '11 в 14:55 2011-03-23 14:55 luca se establece el 23 de marzo de 2011 a las 14:55 2011-03-23 ​​14:55
@ 27 respuestas

Utilice location.reload() :

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

La función reload() toma un parámetro opcional que puede establecer como true para forzar la recarga del servidor, no el caché. La configuración predeterminada es false , por lo que, de forma predeterminada, la página se puede volver a cargar desde la memoria caché del navegador.

3488
23 марта '11 в 14:57 2011-03-23 14:57 La respuesta la da Roy 23 de marzo de 2011 a las 14:57 2011-03-23 ​​14:57

Esto debería funcionar en todos los navegadores incluso sin jQuery:

border=0
 location.reload(); 
428
23 марта '11 в 14:57 2011-03-23 14:57 Thorben da la respuesta el 23 de marzo de 2011 a las 14:57 2011-03-23 ​​14:57

Hay varias formas ilimitadas de actualizar una página usando 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)

    Si necesitáramos recuperar el documento del servidor web nuevamente (por ejemplo, cuando el contenido del documento cambia dinámicamente), pasaríamos el argumento como true .

Puede continuar la lista de creatividades:

  • window.location = window.location
  • window.self.window.self.window.window.location = window.location
  • ... y otros 534 caminos

 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 La respuesta se da a Ionică Bizău el 23 de junio de 2013 a las 12:47 2013-06-23 12:47

Muchas formas funcionarán, supongo:

  • window.location.reload();
  • history.go(0);
  • window.location.href=window.location.href;
187
23 марта '11 в 14:58 2011-03-23 14:58 La respuesta la da David el 23 de marzo de 2011 a las 14:58 2011-03-23 ​​14:58

Para recargar la página usando jQuery, ejecute:

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

El enfoque que utilicé fue Ajax jQuery. Lo probé en Chrome 13. Luego coloco el código en un controlador que causará un reinicio. URL "" que significa en esta página .

117
30 сент. La respuesta se da Pedro 30 de septiembre. 2011-09-30 14:00 '11 a las 14:00 2011-09-30 14:00

Si la página actual se cargó con una solicitud POST, puede usar

 window.location = window.location.pathname; 

en lugar de

 window.location.reload(); 

porque window.location.reload() le pedirá confirmación si se llama en una página cargada con una solicitud POST.

100
22 июня '12 в 14:58 2012-06-22 14:58 SumairIrshad da la respuesta el 22 de junio de '12 a las 2:58 pm 2012-06-22 14:58

La pregunta debe ser

Cómo actualizar la página usando javascript

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

Usted está mimado por la elección.

59
23 марта '11 в 15:01 2011-03-23 15:01 La respuesta la da JohnP el 23 de marzo de 2011 a las 15:01 2011-03-23 ​​15:01

Puedes usar

 location.reload(forceGet) 

forceGet es lógico y opcional.

El valor predeterminado es falso, que vuelve a cargar la página desde el caché.

Establezca este parámetro en verdadero si desea forzar al navegador a obtener la página del servidor para deshacerse de la memoria caché.

O simplemente

 location.reload() 

Si quieres rápido y fácil con el almacenamiento en caché.

51
25 июля '13 в 17:27 2013-07-25 17:27 la respuesta es Pinch el 25 de julio de 2013 a las 17:27 2013-07-25 17:27

Tres enfoques con diferentes comportamientos relacionados con el caché:

  • location.reload(true)

    En los navegadores que implementan el forcedReload location.reload() , se reinicia, seleccionando una nueva copia de la página y todos sus recursos (scripts, hojas de estilo, imágenes, etc.). No servirá ningún recurso del caché; obtiene copias nuevas del servidor sin enviar los encabezados de solicitud if-modified-since o if-none-match .

    Equivalente a un usuario de restablecimiento completo en los navegadores cuando sea posible.

    Tenga en cuenta que enviar true a location.reload() compatible con Firefox (ver MDN ) e Internet Explorer (ver MSDN ), pero no es universalmente compatible y no es parte de la especificación W3 HTML 5 , y W3 es un borrador de la especificación HTML 5.1 , WHATWG HTML estándar de vida .

    En los navegadores no compatibles, como Google Chrome, location.reload(true) comporta igual que location.reload() .

  • location.reload() o location.reload(false)

    Recarga la página, recupera una copia nueva no almacenada en caché de la propia página HTML, y RFC 7234 realiza solicitudes de revisión de los recursos (como los scripts) que el navegador almacena, incluso si están actualizados , RFC 7234 permite que el navegador los sirva sin tener que volver a verificarlos.

    Exactamente cómo el navegador debe usar su caché cuando se realiza una llamada a location.reload() no location.reload() especificado ni documentado, por lo que puedo decir; Definí el comportamiento anterior mediante la experimentación.

    Esto es equivalente al usuario simplemente haciendo clic en el botón Actualizar en su navegador.

  • location = location (o infinitamente muchos otros métodos posibles asociados con la asignación de una location o sus propiedades)

    ¡Solo funciona si la URL de la página no contiene hashing / hashing!

    Vuelve a cargar la página sin volver a configurar o volver a verificar los recursos nuevos de la memoria caché. Si la página HTML es nueva, esto volverá a cargar la página sin ninguna solicitud HTTP.

    Esto es equivalente (en términos de almacenamiento en caché) al usuario que abre la página en una nueva pestaña.

    Sin embargo, si la URL de la página contiene un hash, esto no tendrá ningún efecto.

    Una vez más, el comportamiento de almacenamiento en caché no se define aquí, que yo sepa; Lo identifiqué mediante pruebas.

Entonces, en general, quieres usar:

  • location = location para maximizar el uso del caché si la página no tiene un hash en la URL, en cuyo caso no funcionará
  • location.reload(true) para obtener nuevas copias de todos los recursos sin tener que volver a verificarlos (aunque no es universalmente compatible y no será diferente de location.reload() en algunos navegadores como Chrome)
  • location.reload() para reproducir con precisión el efecto de un usuario haciendo clic en el botón Actualizar.
32
14 нояб. Respuesta dada por Mark Amery 14 de noviembre 2015-11-14 14:22 '15 a las 14:22 2015-11-14 14:22

window.location.reload() recargará desde el servidor y recargará todos sus datos, scripts, imágenes, etc.

Entonces, si solo desea actualizar HTML, window.location = document.URL regresará mucho más rápido y con menos tráfico. Pero no volverá a cargar la página si la URL tiene un hash (#).

23
13 окт. la respuesta es dada por el usuario762330 el 13 de octubre. 2013-10-13 23:32 '13 a las 23:32 2013-10-13 23:32

Puede realizar esta tarea sin usar jQuery window.location.reload(); . Porque hay muchas maneras de hacer esto, pero creo que es una forma adecuada de volver a cargar el mismo documento usando javascript. Aquí hay una explicación.

Puede utilizar el objeto de ventana window.location Javascript.

  • Obtener la dirección de la página actual (URL).
  • Para redirigir el navegador a otra página.
  • Para recargar la misma página.

ventana El objeto de ventana en el script java es una ventana abierta en el navegador.

ubicación El objeto de ubicación en el script java contiene información sobre la URL actual.

El objeto de ubicación es similar a un fragmento de objeto de ventana y se llama a través de la propiedad window.location .

Los objetos de localización tienen tres métodos:

  • assign () Se utiliza para cargar un nuevo documento.
  • reload () Se utiliza para volver a cargar el documento actual.
  • replace () Se utiliza para reemplazar el documento actual por uno nuevo.

Por lo tanto, necesitamos usar reload () , ya que puede ayudarnos a recargar el mismo documento.

Por lo tanto, utilícelo como window.location.reload();

Demo online de Jsfiddle

Para pedirle a su navegador que obtenga la página directamente desde el servidor, no desde el caché, puede pasar el verdadero parámetro location.reload ():

16
23 дек. Nikhil Agrawal respondió el 23 de diciembre. 2013-12-23 12:31 '13 a las 12:31 2013-12-23 12:31

JQuery Load también puede actualizar la página:

 $('body').load('views/file.html', function () { $(this).fadeIn(5000); }); 
15
24 июня '13 в 23:08 2013-06-24 23:08 Suleman Mirza da la respuesta el 24 de junio de 2013 a las 23:08 2013-06-24 23:08

Aquí hay una solución que vuelve a cargar la página de forma asíncrona utilizando jQuery. Evita el parpadeo causado por window.location = window.location . Este ejemplo muestra una página que se recarga continuamente, como en un panel de control. Ha probado la batalla y trabaja en una pantalla de visualización de información en Times Square.

 <!DOCTYPE html> <html > 

Notas:

  • Usar $.ajax directamente como $.get('',function(data){$(document.body).html(data)}) hace que el archivo css / js se bloquee , incluso si usa cache: true , así que usamos parseHTML
  • parseHTML NO encontrará la etiqueta del body por lo que su cuerpo necesita un div adicional, espero que este nugget de conocimiento lo ayude algún día, puede adivinar cómo elegimos id para este div
  • Use http-equiv="refresh" en caso de que algo salga mal con hipo javascript / server, entonces la página TODAVÍA se recargará sin su llamada telefónica.
  • Este enfoque probablemente de alguna manera consuela la memoria, corrige las correcciones de http-equiv que
13
18 мая '16 в 1:30 2016-05-18 01:30 La respuesta fue dada por William Entriken el 18 de mayo de 2016 a la 1:30 2016-05-18 01:30

Como una pregunta general, tratemos de resumir posibles soluciones para una respuesta:

Solución simple para javascript simple :

La forma más fácil es una solución de una línea, colocada en consecuencia:

 location.reload(); 

El hecho de que muchas personas falten aquí porque esperan obtener algunos "puntos" es que la función reload () ofrece un valor booleano como parámetro (para obtener más información: https://developer.mozilla.org/en-US / docs / Web / API / Location / reload ).

El método Location.reload () vuelve a cargar el recurso desde la URL actual. Su parámetro único opcional es booleano, que, cuando es verdadero, hace que la página se vuelva a cargar desde el servidor. Si esto es falso o no está especificado, el navegador puede volver a cargar la página desde su caché.

Esto significa que hay dos formas:

Solución 1: Reemplace la recarga de la página actual del servidor

 location.reload(true); 

Solución 2: reinicie desde el caché o el servidor (según el navegador y su configuración)

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

Y si desea combinarlo con jQuery al escuchar un evento, le recomendaría que utilice el método ".on ()" en lugar de ".click" u otros envoltorios de eventos, por ejemplo. Una mejor solución sería:

 $('#reloadIt').on('eventXyZ', function() { location.reload(true); }); 
12
02 окт. La respuesta se da Fer a 02 oct. 2015-10-02 12:25 '15 a las 12:25 pm 2015-10-02 12:25

Encontré

 window.location.href = ""; 

o

 window.location.href = null; 

También actualiza la página.

Esto facilita la recarga de la página, eliminando cualquier hash. Esto es muy bueno cuando uso AngularJS en el simulador de iOS, por lo que no necesito volver a iniciar la aplicación.

11
15 сент. La respuesta es dada por Mujah Maskey el 15 de septiembre. 2016-09-15 19:04 '16 a las 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 дек. La respuesta se da Jinesh 02 dic. 2017-12-02 23:45 '17 a las 23:45 2017-12-02 23:45

No necesita nada de jQuery para volver a cargar la página usando solo javascript , solo use la función de recarga en la propiedad de ubicación de la siguiente manera:

 window.location.reload(); 

De forma predeterminada, esto volverá a cargar la página utilizando el caché del navegador (si existe) ...

Si desea volver a cargar la página, simplemente pase el valor verdadero para volver a cargar, como se muestra a continuación ...

 window.location.reload(true); 

Además, si ya está en el panel , puede deshacerse de la ventana y hacer:

 location.reload(); 
5
27 мая '18 в 7:53 2018-05-27 07:53 Alireza respondió el 27 de mayo de 18 a las 7:53 am 2018-05-27 07:53

Puede utilizar el método de JavaScript location.reload() . Este método toma un parámetro booleano. true o false Si el parámetro es true ; La página siempre se recarga desde el servidor. Si esto es false ; que por defecto o con un navegador de parámetros vacío vuelve a cargar la página desde el caché.

Con true parametro

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

Con default / false

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

Usando 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 respondió a Poorna Senani Gamage el 5 de marzo de 18 a las 8:18 pm

500 otras formas de recargar la página usando javascript

 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