search property
Sets or retrieves the substring of the href property that follows the question mark.
Syntax
| JavaScript | |
|---|
Property values
Type: String
the substring of the href property.
Remarks
The substring that follows the question mark is the query string or form data.
Examples
This example function returns the search property of the current page location.
function getSearch()
{
return document.location.search;
}
See also
Send comments about this topic to Microsoft
Build date: 11/27/2012