Take a close look at the JavaScript which appears in the HEAD section of this document. It uses the location.search method to extract the SEARCH portion of a full URL. When you first load the page, you will notice that the URL ends with h24.html and that's it. When you enter a caption and press enter the page reloads and you will notice that there is some more information which appears following the h24.html. This portion of the URL is the SEARCH segment. The function shown above takes that SEARCH string and cleans it up so it can be displayed on the resulting page. If there is no SEARCH string at the end of the URL, the caption entry field is displayed.

ASSIGNMENT:

You will go out on the web or to the local picture archive and get your own picture. You will display it and ask the user to come up with a caption for it. Otherwise you will use the same set up shown on this page. Yes, this is an easy assignment, so be sure to get an interesting picture which will spawn interesting captions.