In Javascript, preferably JQuery, how do I add something to the URL when the user clicks “back” button in the browser?
问题 When the browser clicks "back" button, I want to append "&page=3" to the URL. How do I bind it, and then do this? Edit: I want this very simple. BIND the event{ window.location(that-url + "&page=3") } Can it be done that simply? 回答1: It sounds like you're trying to create a history plugin. Have you tried using using the mikage history plugin? I wouldn't recommend changing the URL when they navigate away from the current page (which is what the back button does), because you immediately erase