xhr.send("from=guest&msg=" + document.getElementById("msg").value)
Instead of guest I want to get the name of the logged in user from the query string. Where guest is above should be the username lee as below. How can I change this? thanks
/index.html?username=lee&password=abc#
(no jquery)