Sets or retrieves the substring of the href property that follows the question mark.
dhtml语法
html | n/a |
---|
scripting | object.search [ = ssearch ] |
---|
dhtml可能的值
sSearch | String that
specifies or receives the substring of the href property. |
The property is read/write.
The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.
remarks
the substring that follows the question mark is the query string or form data.
DHTML代码范例
This example function returns the search property of the current page location.
function getSearch()
{
return document.location.search;
}
是否符合公共标准
There is no public standard that applies to this property.
Applies To