This should yield the value HTTP or FILE or one of the other available protocols according to how the document was accessed. This allows you to build script code that can behave differently according to how the document was loaded.
See also: | IMG.protocol, URL |
Prev | Home | Next |
Document.plugins[] | Up | Document.queryCommandEnabled() |
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. |