Hi all,
I know that if we put a button tag <button onclick="my_liveSend"></button>, the defined liveSend function would be called once the button is clicked. Meanwhile, the form would be submitted, meaning that a player would then move to the next page.
The other approach is to create a button that does not submit the form, i.e. <button type="button" onclick="my_liveSend"></button>, but call form.submit() inside liveRecv().
I am wondering which one is better. Shall I worry that the live message might be lost if one leaves the page too quick?
Best,
Jake