Get the parameter from the URL
1
<script language="JavaScript">
2
sUrl = location.search;
3
sIndex = sUrl.indexOf("?url=");
4
if( sIndex != -1 )
5
{
6
sUrl = sUrl.substring( sIndex+5, sUrl.length );
7
}
8
</script>
<script language="JavaScript">2
sUrl = location.search;3
sIndex = sUrl.indexOf("?url=");4
if( 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.


浙公网安备 33010602011771号