When you visit google.com and submit a search query. The form does not post but somehow the q param ends up in the URL allowing google to know what you’re searching for. What’s nice about this is that if you go back the browser doesn’t ask if you want to repost.
What’s a good way with jQuery to build a form that does just that. On submit, it gets with the form input as a url param, and doesn’t trigger the browser back btn?
Thanks
You can use
parent.location.hashto achieve the effect you desire. For example, create a button with the following code:When you click the button, “#Your+URL+parameters” will be appended to the URL in the browser’s address bar.