Make a form submit() behave like location.replace()
<p>IN SHORT:</p>

<p>There's this web page that needs to be submitted when the user loads the page. There is a good reason for it, long story.</p>

<p>Would it be possible to make a form <code>post</code> submit() behave like a location.replace()? No history trace.</p>

<p>Thanks.</p>

<hr>

<p>LONG STORY: In my CMS, I have one page for each product. Products are normally listed on section pages, where the user is invited to <em>choose a product</em> :</p>

<ol>
<li>Small $10 <em>BUY</em></li>
<li>Medium $20 <em>BUY</em></li>
<li>Large $30 <em>BUY</em></li>
</ol>

<p>Clicking on <em>BUY</em> would send the user to the payment page, off-site.</p>

<p>The product details come from the CMS page, where I defined specific fields for price, product ID, etc. Product detailes are rendered as a form.</p>

<p>I basically don't want to show the independent, permalink product pages, ever. But, this being a CMS, the products will be listed on section pages and whatnot, and the user may end up choosing the products by clicking on a link instead of the full rendered page with the form. </p>

<p>If they do end up on the product page, I want them to be redirected to the purchase page. Of course I don't want to keep the page in history, for the same reasons location.replace() was invented: to avoid the back button of eternal redirection. </p>
