HTML | DOM Location Search Property
The Location Search property in HTML DOM is used to set or return the query part of URL including question mark. The query part is the part of URL after the question mark.
- It returns the location search property.
- It is used to set the location search property.
location.search = searchString
Property Value: searchString which is used to specify the search part of URL.
Return Value: It returns a string which represents the search value.
Example: This example display the search part of URL.
Supported Browsers: The browser supported by DOM Location search Property are listed below:
- Google Chrome 1
- Edge 12
- Internet Explorer 3
- Firefox 1
- Opera 12.1
- Safari 1
My Personal Notes arrow_drop_up
Please Login to comment...