2.

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();

 

編集
Post Share
子ページ

子ページはありません

同階層のページ
  1. Uncaught TypeError: Illegal invocation
  2. Form submission canceled because the form is not connected
  3. Uncaught TypeError: location.href is not a function
  4. Access to XMLHttpRequest at 'url1' from origin 'url2' has been blocked by CORS policy
  5. Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')