Thanks, but document.URL gives the entire url, I want just the file name portion. Is there a property or an easy way to split out myfile.html from
? Has to be an easy way !
Following is a description of each part of the URL diagram:
protocol represents the beginning of the URL, up to and including the first colon.
host represents the host and domain name, or IP address, of a network host.
port represents the communications port that the server uses for communications.
pathname represents the url-path portion of the URL.
hash represents an anchor name fragment in the URL, including the hash mark (#). This property applies to http URLs only.
search represents any query information in the URL, including the question mark (?). This property applies to http URLs only. The search string contains variable and value pairs; each pair is separated by an ampersand (&).
The above is very nice, but nowhere the actual file name without the path. Dave:bawling: