| |||||||||||||||||||
protocol Propertylocation Properties DHTML Objects Returns the access method of a URL. Syntax
Possible Values
The property is read/write with no default value. RemarksThe protocol property specifies how information is transferred from the host to the client. Microsoft® Internet Explorer® supports several predefined protocols, including http and ftp. The protocol property returns the initial substring of a URL, including the first colon ( for example: http: ). However, the document and location objects expose the protocol property as read-only and the property returns the expanded text of the protocol acronym. For example, the http protocol is returned as Hypertext Transfer Protocol. ExampleThe following example displays the document protocol property in a message box. alert ( document.protocol ) Applies ToA, AREA, document, IMG, location |
| ||||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme