Javascript Reference
Categories: location

javascript location search

@March 15, 2008, 1:22 a.m.
searchFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM n/a  

Read/Write  

Provides the URL-encoded portion of a URL that begins with the ? symbol. A document that is served up as the result of the search also may have the search portion available as part of the window.location property. You can modify this property by script. Doing so sends the URL and search criteria to the server. You must know the format of data (usually name/value pairs) expected by the server to perform this properly. You can also pass string data between separate pages by appending a search string to the next page's URL. While the search string appendage does not affect retrieval of the page, the string arrives with the new page in the new page's location object. A script in the new page can read and dissect the location.search property to place the passed values in variables that scripts in the page may use for their processing.

 
Example
 
location.search="?p=Tony+Blair&d=y&g=0&s=a&w=s&m=25";
 
Value

String starting with the ? symbol.

 
Default

None.

cost lipitor 80mg <a href="https://lipiws.top/">lipitor 10mg pills</a> buy atorvastatin 20mg online cheap
Hcyorg - 1 weeks
lipitor buy online <a href="https://lipiws.top/">buy cheap generic lipitor</a> buy atorvastatin 80mg sale
Zapdzx - 1 weeks
how can you extract everything AFTER the ?
control spy - 2012-03-12

Powered by Linode.