I am trying to make a bookmarklet, which will be used only in Firefox 3. I want it to do one thing if the page it is used on was the result of a GET request, and another thing if it was produced after submitting a POST request. Specifically, I am trying to determine whether I can pull up the same page by accessing the URL that is in the address bar. Something like this:
if (whatever) {
alert("This page was produced by a get request.");
} else {
alert("This page was produced by a post request.");
}
I just need to know how to test for it.