Question: Can my script access the query string in the current URL?
Answer: A query string (or search string) is an optional part of a URL that goes after the file name and begins with a question mark (?). For example, the following URL has a query string
after the HTML file name:
property. Click the buttons below to try it! (To view the URL in the address line, you might want to display this page in the top-level browser window.) These buttons have been created using the following code:
NOTE: query strings might not always work as expected. For example, if you save this page on your local disk, the above buttons won't work in Internet Explorer 4.x (but they would still work in newer browsers).