- Form submit return false fail if use async
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
</head>
<body>
<form action='/user' method ='get' id='form'>
<input width='10px'>
<button type=submit>傳送</button>
</form>
<script>
var form = document.querySelector('form')
window.onload=async function(){
form.onsubmit=function(){
return false
}
}
</script>
</body>
</html>
- How to install SSL on nginx server use carbot or let's encrypt?