Get the parameter from the URL

1<script language="JavaScript">
2sUrl = location.search;
3sIndex = sUrl.indexOf("?url=");
4if( sIndex != -1 )
5{
6     sUrl = sUrl.substring( sIndex+5, sUrl.length );
7}

8</script>


The method can get the one parameter of the URL only, you can write additional code to seprate the parameters.

posted on 2007-02-01 16:12  广思  阅读(334)  评论(0编辑  收藏  举报

导航