What is the simplest way to submit data via JavaScript?
<p>I have a JS script that is hosted on domain X, but is embedded on domain Y. I would like to send some data back to a page on domain X (via POST probably).</p>

<p>I tried searching for a solution, but most information I found involves using jQuery. Is it possible to do this via plain JavaScript? Should I be worried about cross-site scripting issues?</p>

<p>Basically, I am trying to have something similar to Google Analytics (a little widget sending data back home). I can process the data, but my JavaScript experience is very limited.</p>
