This is a useful debugging aid in some circumstances. Sometimes it is hard to download a file and this may give you a workaround.
To display a window containing the HTML version of a directory in the client machine, try this:
view-source:/
It works at least on Netscape version 4.7 on a Macintosh. It likely works on other platforms and versions of Netscape too.
The top level directory is the folder in which Netscape lives.
On a Macintosh at least, you can append a disk volume name, like this:
view-source:/MacintoshHD/
Beyond that you can build a path to any document in the Macintosh system, including this, which is very interesting.
view-source:/MacintoshHD/System%20Folder/System
This displays a preferences file:
view-source:/MacintoshHD/System%20Folder/Preferences/Fetch%20Shortcuts
With this level of read access to your client machine, you might be able to browse various file content that normally you wouldn't have time to do. Point at a file and its data is visible right there on the screen in a browser window.
Be very careful what you browse and how. This may void your warranty. Your mileage may vary. You may corrupt your system although read-only access is unlikely to cause any harm.
See also: | file: URL, javascript: URL, URL |
Prev | Home | Next |
Version History | Up | Visual filters |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |