August 1999
Intermediate to advanced
1488 pages
72h 53m
English
location.search
The search property of the Location object represents the query portion of the URL, including the preceding question mark.
In the following fictitious Web address:
http://www.mcp.com:80/foo?something#foobar
the search value would be the ?something portion.
Listing 7.389 shows how to use the search property. When the button is clicked, the show function displays the value of the search property in the text box.
<html> <head> <title> Using the search property of the Location object</title> </head> <body> <script language="JavaScript"> <!-- Hide // function displays the search property ... |
Read now
Unlock full access