2011-05-01 62 views

回答

4

將舊頁面url存儲在cookie中。或者將referer添加到片段標識符中的url中。

location.href = 'page.html' + '#' + location.href 

或者用javascript創建一個鏈接,並將其命名爲.click()。所以像

var a = document.createElement('a'); 
a.href='page.html'; 
document.body.appendChild(a);//not sure if this is needed 
a.click(); 
+0

謝謝Gerben ...它真的幫了我很多.... – 2012-10-29 14:17:39

相關問題