Get the parameter from the URL
2007-02-01 16:12
423 查看
1<script language="JavaScript">
2sUrl = location.search;
3sIndex = sUrl.indexOf("?url=");
4if( sIndex != -1 )
5</script>
The method can get the one parameter of the URL only, you can write additional code to seprate the parameters.
2sUrl = location.search;
3sIndex = sUrl.indexOf("?url=");
4if( sIndex != -1 )
5</script>
The method can get the one parameter of the URL only, you can write additional code to seprate the parameters.
相关文章推荐
- js - get-the-value-from-the-url-parameter(可以在非模态对话框中使用)
- Get URL from the text
- How to get parameters from the URL?
- How can I get the request URL from a Java Filter?
- JSP URI/URL - How to get the request URI, URL, and Context from a JSP
- the URL of MSHTML Reference from MSDN
- Andriod: The method getDrawable(int) from the type Resources is deprecated,一系列问题
- How to get the password text in a text with password property from another process using C++ - 用C++如何从不同进程获取密码框文本
- could not get the value for parameter encoding forplugin execution default resources 处理
- Get the self URL of current page
- iOS ERROR: unable to get the receiver data from DB
- Get the metadata value using client object model from the sharepoint 2010
- windows php 错误: openssl_pkey_export(): cannot get key from parameter 1
- Unable to get element from the feed as bytes.解决
- maven--pom.xml错误--CoreException: Could not get the value for parameter compilerId
- iOS ERROR: unable to get the receiver data from the DB 解决方案
- Xmanager Failed to get the installation date from the system registry
- Maven: Could not get the value for parameter encoding for plugin execution default-resources Plugin
- Unable to get the project ile from the web server错误的解决方法
- A guide to get you building OGRE from source with the default settings in the shortest possible time