タイトル: Form submission canceled because the form is not connected
| この記事の要点 |
|---|
|
エラー内容
|
Form submission canceled because the form is not connected |
発生条件/原因
OSがChromeの場合、bodyタグ内にformを記載せずsubmitすると上記のエラーが発生する。
対処法
body内にformを記載する。
|
var form = document.createElement('form'); form.method = 'POST'; form.action = ' ... 略 ... '; $("body").append(form); form.submit(); |