tags:

views:

37

answers:

3

Can somebody please help me with java-script page reload that works irrespective of browser ? solution is expected ASAP ..

Thanks ...

Resh

A: 
location.reload();

See this MDC page for more information about the location object.

Lekensteyn
+1  A: 

location.href = location.href

guilin 桂林
+1  A: 

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'.
sheeks06