Return to Snippet

Revision: 9229
at October 27, 2008 00:51 by sircambridge


Initial Code
var gup = function( name ) {
    var results = (new RegExp("[\\?&]"+name+"=([^&#]*)")).exec(window.location.href);
    if ( results == null ) {return ""}
    else {return results[1]}
};

Initial URL

                                

Initial Description

                                

Initial Title
javascript get url parameter gup

Initial Tags

                                

Initial Language
Other