The site has to send POST request "amount=1" by klicking any Link on this site.
With GET this works:
window.onload = function () { document.body.onclick = function (e) { e = e||event; var was = (e.target||e.srcElement);
if ( was.href ) { was.href = was.href + '?edit=yes'; } }; };
but i dont want to have the parameter in the url.
My idea was this:
<form action="" id="amount" method="POST">
<input name="amount" type="hidden" value="1"/>
<input type="submit" />
</form>
<script>
window.onload = function () { document.body.onclick = function (e) { e = e||event; var was = (e.target||e.srcElement);
if ( was.href ) { document.amount.submit(); } }; };
But this is not working.