When using javascript, the typical way to redirect a page with a parameter is the following:
window.location = "add-new-cos.jsp?id="+id;
However, the id value is sent to the next page using the GET method. I am interested in sending it using the POST method instead. Is there a way to achieve this using javascript?