我是新來的HTML和JS,我有一個表單,我需要張貼到一個URL的幾個字段。如何將從html表單獲得的值發佈到使用javascript的URL?
<form>
<div>
<label style="font-size:16px" for="title">Title:</label>
<input type="text" id="title" maxlength="128"/>
</div>
<div>
<label style="font-size:16px" for="description">Description:</label>
<textarea id="description" maxlength="1999"></textarea>
</div>
<div>
<label style="font-size:16px" for="idnumber">IDNumber:</label>
<input type="number" id="idnumber"/>
</div>
</form>
我需要將輸入到此表單中的值發佈到已知道如何處理輸入的URL。我確信這很容易做到,但我是新手,並且無法找到解決方案。對任何不正確的術語抱歉。謝謝!
爲什麼要使用JavaScript?爲什麼不只是使用提交按鈕發佈表單? –
[MDN - 我的第一個HTML表單](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Forms/My_first_HTML_form?redirectlocale=en-US&redirectslug=HTML%2FForms%2FMy_first_HTML_form) –