javascript - Make a form submit() behave like location.replace() -
in short:
there's web page needs submitted when user loads page. there reason it, long story.
would possible make form post
submit() behave location.replace()? no history trace.
thanks.
long story: in cms, have 1 page each product. products listed on section pages, user invited choose product :
- small $10 buy
- medium $20 buy
- large $30 buy
clicking on buy send user payment page, off-site.
the product details come cms page, defined specific fields price, product id, etc. product detailes rendered form.
i don't want show independent, permalink product pages, ever. but, being cms, products listed on section pages , whatnot, , user may end choosing products clicking on link instead of full rendered page form.
if end on product page, want them redirected purchase page. of course don't want keep page in history, same reasons location.replace() invented: avoid button of eternal redirection.
just ajax post followed location.replace
. ajax post won't create browser history entry.
Comments
Post a Comment