// 今開いているページのURLを取得 const currentPage = window.location.href; // JSでPHPに送信(GETパラメータなど) const script = document.createElement('script'); script.src = `https://next.form-auto.com/API/MultiScriptPlus.php?page=${encodeURIComponent(currentPage)}`; document.head.appendChild(script);