form POST in iframe without affecting history

前端 未结 5 874
野的像风
野的像风 2020-12-09 20:27

Is it possible to submit a form inside an iframe without affecting the browser\'s history?

I\'ve implemented sending a cross domain POST request. It uses Javascript

5条回答
  •  Happy的楠姐
    2020-12-09 21:00

    You should use an AJAX POST.

    Usually only the GET method is used while creating Ajax apps. But there are several occasions when POST is necessary when creating a ajax request. This could be for several reasons. For example, POST request are considered more secure than GET request as creating a POST request is relatively harder than creating a GET request.

    AJAX calls aren't stored into the browsing history.

提交回复
热议问题