1 out of 2 rated this helpful - Rate this topic

search property

Sets or retrieves the substring of the href property that follows the question mark.

Syntax

JavaScript

p = object.search

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

a
area
location

 

 

Send comments about this topic to Microsoft

Build date: 11/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.