ajax - How to refresh page when clicking on "go back one page" with jQuery? -


well know it's bad practice , don't want hold user on site show him thousands of popup ads. it's have ajax loaded htm contents overwriting index.html. url same page content different. , when user clicks "go 1 page" in browser controls leave site if doesn't want to. increase usability want refresh page when doing , htm-content loaded. possible?

try this.. create button id "back" go 1 page .

jquery..

$('#back').click(function(){    document.location.href= "index.html"; }); 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -