I understand that XSS is when you can get a site to run arbitrary JavaScript by appending it to a URL or embedding it in the page somehow.
I understand this is bad because it can allow people to steal cookies and such.
What I don't understand is how that is possible. ALl my reading about it just shows people using alert() to display the cookie....which would display it to the user clicking on it.
Is it actually possible with JS to send a cookie remotely to another PC? How?