HTML
0
Вклад в тег
<form action="/save" id="form" >
<input type="text" value="test"><br>
<input type="submit" value="submit">
</form>
const submitForm = function () {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const isSubmit = urlParams.get('submit')
if(isSubmit==='true'){
document.getElementById('form').submit();
}
}
submitForm()
/index.html?submit=true