2013年2月5日 星期二

在 Firefox 3.5 上遇到的 reload 問題

##
you might call the same page but let it look like it is an other page by changing the querystring:
window.location.href = "index.html" + "?" + Date.parse(new Date());
This works for every browser. You could improve it by extracting the current page out of location.href.
Edit:
If you already have an existing querystring you have to use & insead of ?:
window.location.href = "product.aspx?id=prod" + "&" + Date.parse(new Date());
##

Reference:
http://stackoverflow.com/questions/1536900/force-a-page-refresh-using-javascript-in-firefox

沒有留言:

張貼留言