post action for url.action?

You can’t use POST by simply navigating to a different URL. (Which is what you’d do by changing location.href.)

Using POST only makes sense when submitting some data. It’s not clear from your code what data would actually be POSTed.

If you really want to initiate a POST via javascript try using it to submit a form.

Leave a Comment