Đang chuẩn bị liên kết để tải về tài liệu:
JavaScript Bible, Gold Edition part 49

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

JavaScript Bible, Gold Edition part 49. This book will bring programmers and non-technical professionals, including casual programmers and scripters, painlessly up to speed on all aspects of mastering JavaScript. Key topics include programming fundamentals, JavaScript language elements and how to use them effectively, and how to easily and efficiently add powerful new functionality to HTML documents and Java applets. | 328 Part III Document Objects Reference Example on the CD-ROM On the CD-ROm Related Item location.host property. protocol Value String Read Write NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 IE5.5 Compatibility The first component of any URL is the protocol used for the particular type of communication. For World Wide Web pages the Hypertext Transfer Protocol http is the standard. Other common protocols you may see in your browser include HTTP-Secure https File Transfer Protocol ftp File file and Mail mailto . Values for the location.protocol property include not only the name of the protocol but also the trailing colon delimiter. Thus for a typical Web page URL the location.protocol property is http Notice that the usual slashes after the protocol in the URL are not part of the location.protocol value. Of all the location object properties only the full URL location.href reveals the slash delimiters between the protocol and other components. Example on the CD-ROM Related Item location.href property. search Value String Read Write NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 IE5.5 Compatibility Perhaps you ve noticed the long cryptic URL that appears in the Location Address field of your browser whenever you ask one of the WWW search services to look up matches for items you enter into the keyword field. The URL w ndowOh ecf.location.search Chapter 17 Location and History Objects 329 starts the regular way with protocol host and pathname values. But following the more traditional URL are search commands that are submitted to the search engine a CGI program running on the server . You can retrieve or set that trailing search query by using the location.search property. Each search engine has its own formula for query submissions based on the designs of the HTML forms that obtain details from users. These search queries come in an encoded format that appears in anything but plain language. If you plan to script a search query be sure you fully understand the search engine s format