Roadhog adlı üyeden alıntı: mesajı görüntüle
<form id="surfbar" method="post" action="test">
<input value="http://www.google.com/" class="input" name="page" type="text" id="maintextfield">
<input class="boton" src="https://www.r10.net/images/surf_btn.png" value="Submit" alt="Submit" type="image">
</form>
İnput value içine yazılan yazıyı action içine nasıl yansıtırım
<html>
<head>
</head>
<body>

<form id="surfbar" method="post" action="test">
<input value="http://www.google.com/" class="input" name="page" type="text" id="maintextfield">
<input class="boton" src="https://www.r10.net/images/surf_btn.png" value="Submit" alt="Submit" type="image">
</form>

<script>
    const input = document.getElementById('maintextfield');
    const form = document.getElementById('surfbar');
    input.addEventListener('input', function (){
form.setAttribute('action', input.value)
});
</script>
</body>
</html>