使用window.history.replaceState是否安全?

时间:2018-12-13 08:17:58

标签: javascript html security dom

我在php / html页面的底部具有以下脚本,以阻止用户仅通过刷新页面即可重新提交已经提交的表单。这是一种安全的方法吗?可以。

<script>
if ( window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
}
</script>  

0 个答案:

没有答案