javascript - Back button with refreshed page -


how can in go refreshed page in button. googled not work me. problem explanation: have button in page. when clicking on button goes previous page. want when click on button go , load new refreshed page.

you this:

javascript

function gobackwithrefresh() {     var last_url = document.referrer;      if( last_url )     {         window.location.href= last_url;     } else {         window.history.back();     } } 

trigger

<a href="javascript:gobackwithrefresh();">my button link</a> 

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -