failor when to PCs are connescted to the same WEB server because the refresh.

hi to evryone !

I have a small problem with my smart home project..

when to PC are connected to the same Web page the led state is changin because of the refresh.. what hapen is that to th 1 PC the wrl is saved on and to the second is saved off the state of the led is changed every 5 sec.

client.println(F("function OnButtonClicked(parm) { window.location.href=\"X?\" + parm; }"));

tha parameter is saved from the browser.. I m not good with the HTML programing and i can not resolve this problem.. is anyone who could help me.. thanks