web servo motor ?

i need help i have the following code and need guidance on how to have 1 web button do multiple outputs

webPage += “

WEB SERVO ONLINE

Blind Controller

”;
webPage += "<a href=“0”>0
";
webPage += "<a href=“10”>10
";
webPage += "<a href=“20”>20
";
webPage += "<a href=“30”>30
";
webPage += "<a href=“40”>40
";
webPage += "<a href=“50”>50
";

i want to make 1 button called " Forward " and when i go to the page i click the forward button it scans through each time i click it, so

Click “forward” webPage += "<a href=“0”>0
";
Click “forward” webPage += "<a href=“10”>10
";
Click “forward” webPage += "<a href=“20”>20
";
Click “forward” webPage += "<a href=“30”>30
";
Click “forward” webPage += "<a href=“40”>40
";
Click “forward” webPage += "<a href=“50”>50
";

so on the URL it will have

http://10.0.0.119/0

click “forward”

http://10.0.0.119/10

click “forward”

http://10.0.0.119/20

something like this code here would be good but i dont know how to execute it
webPage += "<a href=“0-10-20-30-40-50”>Forward
";
webPage += "<a href=“60-70-80-90-100”>Backwards
";

"something like this code here would be good but i dont know how to execute it
webPage += "<a href=“0-10-20-30-40-50”>Forward
";
webPage += "<a href=“60-70-80-90-100”>Backwards
“;”

Well, maybe you can’t, not easily anyhow with one button. Better to make an array of buttons on the page that will control each value/direction individually.

ive already tried with multiple buttons, but i want a momentry button that has data reading every time i click it,

so click the forward button.

webPage += "<a href=“10”>Forward
";

click again with the same button

webPage += "<a href=“20”>Forward
";

kinda like having overlapping the forward button but with (a href= ) different results.

you really need to execute it dynamically with JS script,

something like

<button onClick="count()" >Forward</button>

<script>

var counter = 10;  // initial value goes here

function count() {   //  when forward button is clicked

passValue(counter);

counter += 10;   // increment it by 10

}

</script>

well you will need to use Ajax trick to passValue(counter) to your ‘server’

https://www.w3schools.com/xml/xml_http.asp