Generating Unique Strings in Javascript 

Here is a simple way to generate a unique string in javascript.

    var ts = (new Date()).getTime().toString();
    var url = "ajaxHandler.php?param1=value1&paramn=valuen&t=" + ts;
    //do ajax call...

This method is very helpful for ajax developers, to overcome the problem of cached ajax requests in IE.