Sets or retrieves the substring of the href property that follows the question mark.
the substring of the href property representing the query string (including the question mark).
The substring that follows the question mark is called the query string. It represents information passed to the webpage or hosting server.
Note that the value of the searchproperty includes the question mark as the first character.
This example function returns the search property of the current page location.