Easy Tutorial
❮ Prop Meta Name Dom Obj Search ❯

Location search Property


Definition and Usage

The search property is a read-write string that sets or returns the query part of the current URL (the part after the question mark ?).

Syntax


Browser Support

All major browsers support the search property.


Example

Example

Return the query part of the URL. Assuming the current URL is http://www.tutorialpro.org/[email protected]:

The output for the above example would be:

❮ Prop Meta Name Dom Obj Search ❯