JavaScript Bible 5th Edition 2004 phần 7 pot
... property returns None. Listing 35 -7: Using the document.selection Object <html> <head> <title>selection Object</title> <script type=”text /javascript > function processSelection() ... Properties <html> <head> <title>Font Object Properties</title> <script type=”text /javascript > // one function does all! Note font 1034 Part IV ✦ Ja...
Ngày tải lên: 12/08/2014, 19:21
... one of the frames, see the location.search property in Chapter 17. Listing 16-2: Forcing a Frameset to Load <script type=”text /javascript > var isNav4 = (navigator.appName == “Netscape” && ... src=”someURL.html”> <frame name=”Frame2” src= javascript: parent.blank()”> </frameset> </html> Viewing frame source code Studying other scripters’ work is a major l...
Ngày tải lên: 12/08/2014, 19:21
... browsers support JavaScript as of yet. Is JavaScript on? Very often, the first decision an application must make is whether the client accessing the site is JavaScript- enabled. Non -JavaScript- enabled ... browsers fall into two categories: a) JavaScript- capable browsers that have JavaScript turned off in the preferences; and b) browsers that have no built-in JavaScript interprete...
Ngày tải lên: 12/08/2014, 19:21
JavaScript Bible 5th Edition 2004 phần 4 doc
... Check the history listing (in your browser’s usual spot for this information) before and after clicking Replace Me in Listing 17- 10. Listing 17- 10: Invoking the location.replace() Method <html> <head> <title>location.replace() ... scripting of cookies, you should omit this parameter when saving a cookie. document.cookie 5 07 Chapter 17 ✦ Location and History Objects matc...
Ngày tải lên: 12/08/2014, 19:21
JavaScript Bible 5th Edition 2004 phần 5 pptx
... from the database, the onerrorupdate event fires. document.formObject.textObject.onafterupdate 677 Chapter 23 ✦ Text-Related Form Objects Properties defaultValue Value: String. Read-Only Compatibility: ... object’s name in its reference within JavaScript coding. If you assign distinctive, meaning- ful names to your fields, these names will help you read and debug your JavaScript listin...
Ngày tải lên: 12/08/2014, 19:21
JavaScript Bible 5th Edition 2004 phần 8 pptx
... plug-ins: navigator.plugins.refresh() pluginObject.name() BC75 Chapter 38 ✦ The Navigator and Other Environment Objects function isNav4 _7( ) { return (isNav() && parseFloat(navigator.appVersion) == 4 .7) ; } function isMSIE4Min() ... ii, iii, 1 1, 2, 3, ol.type BC70 Part VI ✦ Bonus Chapters Using the appVersion property A typical appVersion property value looks like the following (...
Ngày tải lên: 12/08/2014, 19:21
JavaScript Bible 5th Edition 2004 phần 9 doc
... 90),(thisYear - 20)); } // Date Minus 70 /Minus 0 function isM70_0Date() { if (gField.value.length == 0) return true; var thisYear = getTheYear(); return isDate((thisYear - 70 ),(thisYear)); } // Date Minus ... dispatcher(isNum16); dispatchLookup[“isM90_M20Date”] = new dispatcher(isM90_M20Date); dispatchLookup[“isM70_0Date”] = new dispatcher(isM70_0Date); dispatchLookup[“isM5_P10Date”] = ne...
Ngày tải lên: 12/08/2014, 19:21