Return to Snippet

Revision: 12420
at March 13, 2009 10:59 by BoNzO


Initial Code
<script type="text/javascript"><![CDATA[
function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}	]]>
</script>


<script type="text/javascript">
        var cat_corrente = gup("id");
		document.write(cat_corrente);
		</script>

Initial URL

                                

Initial Description

                                

Initial Title
estrarre una variabile dal querystring

Initial Tags
url

Initial Language
JavaScript