[thelist] JS: Snippet to grab GET/POST value?

Frank lists at frankmarion.com
Mon Aug 18 15:54:34 CDT 2003


Can someone recommend the simplest way to retrieve a get/post value using 
javascript?

I want it so that I can do something of this nature:

function isThisReloaded() {
    var url_value = '';
    if (my_url_value == 1) {
       doThisFunkyThing();
    } else {
       doNada();
    }
}
onload = isThisReloaded;

if the value my_url_value  is found in the get or post values another 
function gets triggered, otherwise, it just ignores it.

Thanks



--
Frank Marion     lists at frankmarion.com      Keep the signal high.  



More information about the thelist mailing list