Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 45: Line 45:
}  
}  
-
document.getElementById("html").innerHTML=getQuerystring("aa","browse");
+
unction 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];
 +
}
 +
 
 +
document.getElementById("html").innerHTML=gup('aa');
/* ]]> */</script>
/* ]]> */</script>

Revision as of 19:47, 25 October 2008

Gallery Bricks Notebook Team Project Home