Javascript / jQuery - Strip the current page URL
<p>I am currently working on an Enquiry system for our travel website.</p>

<p>When a user submits an enquiry, i have set it to reload the same page (by grabbing the current url and setting it as the redirect).</p>

<p>Upon redirecting my javascript detects if the following string is present in the URL - "?sendto", and if so it returns a thank you message.</p>

<p>After this process, im looking to remove the "?sendto=email@address.com" string from the end of the url (example url - www.google.com/index.html?sendto=email@address.com). My question is therefore:</p>

<p><strong>Am i able to through a script, strip a part of the current URL</strong></p>
