<form method="post" action="http://1111.ru/hunt_conf.php" name="r2" target="h1"> <input type="hidden" name="mode" value="farm"> <input type="hidden" name="action" value="check"> <input type="hidden" name="num" value="41"> </form> <button id="startres" onclick="r2.submit(); res2=setInterval('r2.submit()', 63000); document.getElementById('stopres').style.display=' inline-block'; this.style.display='none';" title="skrigalii ON">ΠšΠΎΠΏΠ°Ρ‚ΡŒ</button> <button id="stopres" onclick="clearInterval(res2); document.getElementById('startres').style.display= 'inline-block'; this.style.display='none';" title="skrigalii OFF">НС ΠΊΠΎΠΏΠ°Ρ‚ΡŒ (стоп)</button> 

Is it possible to make the value value = "41" change?)

  • <form onsubmit="return false;" ... <form onsubmit="return false;" ... - Igor
  • one
    The title of the question should contain the brief essence of the problem, not the cry of the soul ... - Air

1 answer 1

Is it possible to make the value value = "41" change?)

Yes you can:

 let frm = document.forms.r2; // ΠΈΠ·ΠΌΠ΅Π½ΠΈΡ‚ΡŒ Π·Π½Π°Ρ‡Π΅Π½ΠΈΠ΅: frm.num.value = '42'; // ΠΈΠ·ΠΌΠ΅Π½ΠΈΡ‚ΡŒ Ρ‚ΠΈΠΏ (сдСлав Π²ΠΈΠ΄ΠΈΠΌΡ‹ΠΌ): frm.num.type = 'text'; 
 <form method="post" action="http://1111.ru/hunt_conf.php" name="r2" target="h1"> <input type="hidden" name="mode" value="farm"> <input type="hidden" name="action" value="check"> <input type="hidden" name="num" value="41"> </form>