basically i am checking if i am in the same url as the page
and i want to refresh the page only once,but whenever i try it keep refreshing infinitively
place='/development/petersburg';
var pathname=window.location.pathname;
if((pathname==place)){
window.location.reload();//reload the page
}
help!! how can i limit this page to refresh only once if the condition is true?