home *** CD-ROM | disk | FTP | other *** search
/ Java Internet Programming Reference Guide / Java Internet Programming Reference Guide.iso / autorun / java.dir / 00203_15.txt < prev    next >
Encoding:
Text File  |  1996-01-12  |  14.4 KB  |  1,811 lines

  1. forward method
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. Loads the next URL in the history list.
  10.  
  11.  
  12.  
  13.  
  14.  
  15. Syntax
  16.  
  17.  
  18.  
  19.  
  20. forward()
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. Description
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. This method performs the same action as a user choosing the Forward button in the Navigator. The forward method is the same as go(1).
  35.  
  36.  
  37.  
  38.  
  39.  
  40. Applies to
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. history
  48.  
  49.  
  50.  
  51.  
  52.  
  53. Examples
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. xxx Examples to be supplied.
  61.  
  62.  
  63.  
  64.  
  65.  
  66. See also
  67.  
  68.  
  69.  
  70.  
  71. back, go methods
  72.  
  73.  
  74. ------------------------------------------------------------------------
  75.  
  76.  
  77.  
  78.  
  79.  
  80. getDate method
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90. Syntax
  91.  
  92.  
  93.  
  94.  
  95. dateObj.getDate()
  96.  
  97.  
  98.  
  99. where dateObj is a date object.
  100.  
  101.  
  102.  
  103.  
  104.  
  105. Description
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112. Returns the day of the month for the date object, an integer between 1 and 31.
  113.  
  114.  
  115.  
  116.  
  117.  
  118. Applies to
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125. Date
  126.  
  127.  
  128.  
  129.  
  130.  
  131. Examples
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139. The second statement below assigns the value 25 to the variable day, based on the value of the date object Xmas95.
  140.  
  141. Xmas95 = new Date("December 25, 1995 23:15:00")
  142. day = Xmas95.getDate()
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150. See also
  151.  
  152.  
  153.  
  154.  
  155. xxx To be supplied.
  156.  
  157.  
  158. ------------------------------------------------------------------------
  159.  
  160.  
  161.  
  162.  
  163.  
  164. getDay method
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174. Syntax
  175.  
  176.  
  177.  
  178.  
  179. dateObj.getDay() 
  180.  
  181.  
  182.  
  183. where dateObj is a date object.
  184.  
  185.  
  186.  
  187.  
  188.  
  189. Description
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197. Returns the day of the week for the date object, an integer corresponding
  198. to the day of the week: zero for Sunday, one for Monday, two for Tuesday, 
  199. and so on. 
  200.  
  201.  
  202.  
  203.  
  204.  
  205. Applies to
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212. Date
  213.  
  214.  
  215.  
  216.  
  217.  
  218. Examples
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226. The second statement below assigns the value 1 to weekday, 
  227. based on the value of the date object Xmas95. This is because December 25, 1995 is a Monday.
  228.  
  229. Xmas95 = new Date("December 25, 1995 23:15:00")
  230. weekday = Xmas95.getDay()
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239. See also
  240.  
  241.  
  242.  
  243.  
  244. xxx To be supplied.
  245.  
  246.  
  247. ------------------------------------------------------------------------
  248.  
  249.  
  250.  
  251.  
  252.  
  253. getHours method
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262. Syntax
  263.  
  264.  
  265.  
  266.  
  267. dateObj.getHours()
  268.  
  269.  
  270.  
  271.  
  272. where dateObj is a date object.
  273.  
  274.  
  275.  
  276.  
  277.  
  278. Description
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286. Returns the hour for the date object, an integer between 0 and 23.
  287.  
  288.  
  289.  
  290.  
  291.  
  292. Applies to
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299. Date
  300.  
  301.  
  302.  
  303.  
  304.  
  305. Examples
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313. The second statement below assigns the value 23 to the variable hours, based on the value of the date object Xmas95.
  314.  
  315. Xmas95 = new Date("December 25, 1995 23:15:00")
  316. hours = Xmas95.getHours()
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325. See also
  326.  
  327.  
  328.  
  329.  
  330. xxx To be supplied.
  331.  
  332.  
  333. ------------------------------------------------------------------------
  334.  
  335.  
  336.  
  337.  
  338.  
  339. getMinutes method
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348. Syntax
  349.  
  350.  
  351.  
  352.  
  353. dateObjgetMinute() 
  354.  
  355.  
  356.  
  357. where dateObj is a date object.
  358.  
  359.  
  360.  
  361.  
  362.  
  363. Description
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371. Returns the minutes in the date object, an integer between 0 and 59.
  372.  
  373.  
  374.  
  375.  
  376.  
  377. Applies to
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384. Date
  385.  
  386.  
  387.  
  388.  
  389.  
  390. Examples
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398. The second statement below assigns the value 15 to the variable minutes, based on the value of the date object Xmas95.
  399.  
  400. Xmas95 = new Date("December 25, 1995 23:15:00")
  401. minutes = Xmas95.getMinutes()
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409. See also
  410.  
  411.  
  412.  
  413.  
  414. xxx To be supplied.
  415.  
  416.  
  417. ------------------------------------------------------------------------
  418.  
  419.  
  420.  
  421.  
  422.  
  423. getMonth method
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432. Syntax
  433.  
  434.  
  435.  
  436.  
  437. dateObj.getMonth() 
  438.  
  439.  
  440.  
  441. where dateObj is a date object.
  442.  
  443.  
  444.  
  445.  
  446.  
  447. Description
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455. Returns the month in the date object, an integer between zero and eleven. Zero corresponds to January, one to Februrary, and so on.
  456.  
  457.  
  458.  
  459.  
  460.  
  461. Applies to
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468. Date
  469.  
  470.  
  471.  
  472.  
  473.  
  474. Examples
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482. The second statement below assigns the value 11 to the variable month, based on the value of the date object Xmas95.
  483.  
  484. Xmas95 = new Date("December 25, 1995 23:15:00")
  485. month = Xmas95.getDate()
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494. See also
  495.  
  496.  
  497.  
  498.  
  499. xxx To be supplied.
  500.  
  501.  
  502. ------------------------------------------------------------------------
  503.  
  504.  
  505.  
  506.  
  507.  
  508. getSeconds method
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517. Syntax
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524. dateObj.getSeconds() 
  525.  
  526.  
  527.  
  528. where dateObj is a date object.
  529.  
  530.  
  531.  
  532.  
  533.  
  534. Description
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542. Returns the seconds in the current time, an integer between 0 and 59.
  543.  
  544.  
  545.  
  546.  
  547.  
  548. Applies to
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555. Date
  556.  
  557.  
  558.  
  559.  
  560.  
  561. Examples
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569. The second statement below assigns the value 30 to the variable secs, 
  570. based on the value of the date object Xmas95.
  571.  
  572. Xmas95 = new Date("December 25, 1995 23:15:30")
  573. secs = Xmas95.getSeconds()
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581. See also
  582.  
  583.  
  584.  
  585.  
  586. xxx To be supplied.
  587.  
  588.  
  589.  
  590. ------------------------------------------------------------------------
  591.  
  592.  
  593.  
  594.  
  595.  
  596. getTime method
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605. Syntax
  606.  
  607.  
  608.  
  609.  
  610. dateObj.getTime() 
  611.  
  612.  
  613.  
  614. where dateObj is a date object.
  615.  
  616.  
  617.  
  618.  
  619.  
  620. Description
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628. Returns the numeric value for the date object.
  629. This number is the number of milliseconds since the epoch (1 January 1970 00:00:00)
  630. You can use this method to help assign a date and time to another date object.
  631.  
  632.  
  633.  
  634.  
  635.  
  636. Applies to
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643. Date
  644.  
  645.  
  646.  
  647.  
  648.  
  649. Examples
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657. The following example assigns the date value of theBigDay to sameAsBigDay.
  658.  
  659.  
  660. theBigDay = new Date("July 1, 1999")
  661. sameAsBigDay = new Date();
  662. sameAsBigDay.setTime(theBigDay.getTime())
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670. See also
  671.  
  672.  
  673.  
  674.  
  675. xxx To be supplied.
  676.  
  677.  
  678.  
  679. ------------------------------------------------------------------------
  680.  
  681.  
  682.  
  683.  
  684.  
  685. getTimezoneOffset method
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695. Syntax
  696.  
  697.  
  698.  
  699.  
  700. dateObj.getTimezoneOffset()
  701.  
  702.  
  703.  
  704. where dateObj is a date object.
  705.  
  706.  
  707.  
  708.  
  709.  
  710. Description
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718. Return the time zone offset in minutes for the current locale, i.e. the 
  719. difference between the local time and GMT. 
  720. This value would be a constant except for daylight savings time. 
  721.  
  722.  
  723.  
  724.  
  725.  
  726. Applies to
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733. Date
  734.  
  735.  
  736.  
  737.  
  738.  
  739. Examples
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746. x = new Date();
  747. currentTimeZoneOffsetInHours = x.getTimezoneOffset()/60;
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755. See also
  756.  
  757.  
  758.  
  759.  
  760. xxx To be supplied.
  761.  
  762.  
  763.  
  764. ------------------------------------------------------------------------
  765.  
  766.  
  767.  
  768.  
  769.  
  770. getYear method
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779. Syntax
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786. getyear()
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793. Description
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801. Returns the year in the date object, less 1900.
  802.  
  803.  
  804.  
  805.  
  806.  
  807. Applies to
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814. Date
  815.  
  816.  
  817.  
  818.  
  819.  
  820. Examples
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828. The second statement below assigns the value 95 to the variable year, based on the value of the date object Xmas95.
  829.  
  830. Xmas95 = new Date("December 25, 1995 23:15:00")
  831. year = Xmas95.getYear()
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840. See also
  841.  
  842.  
  843.  
  844.  
  845. xxx To be supplied.
  846.  
  847.  
  848. ------------------------------------------------------------------------
  849.  
  850.  
  851.  
  852.  
  853.  
  854. go method
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862. The argument delta is an integer. If delta┬á is greater than zero, then it loads the URL that is that number of entries forward in the history list; otherwise, it loads the URL that is that number of entries backward in the history list.
  863.  
  864.  
  865.  
  866. The argument string is a string. Go to the newest history entry whose title or URL contains string as a substring; substring matching is case-insensitive.
  867.  
  868.  
  869.  
  870.  
  871.  
  872. Syntax
  873.  
  874.  
  875.  
  876.  
  877. go(delta | "string")
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884. Description
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891. xxx Description to be supplied.
  892.  
  893.  
  894.  
  895.  
  896.  
  897. Applies to
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904. history
  905.  
  906.  
  907.  
  908.  
  909.  
  910. Examples
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917. xxx Examples to be supplied.
  918.  
  919.  
  920.  
  921.  
  922.  
  923. See also
  924.  
  925.  
  926.  
  927.  
  928. back, forward methods
  929.  
  930.  
  931. ------------------------------------------------------------------------
  932.  
  933.  
  934.  
  935.  
  936.  
  937. indexOf method
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945. Returns the index within the calling string object of the first occurrence of the specified character, starting the search at fromIndex.
  946.  
  947.  
  948.  
  949.  
  950.  
  951. Syntax
  952.  
  953.  
  954.  
  955.  
  956. indexOf(character, [fromIndex])
  957.  
  958.  
  959.  
  960. character is the character to search for.
  961.  
  962. fromIndex is the location within the calling string to start the search from, any integer from 0 to string.length() - 1.
  963.  
  964.  
  965.  
  966.  
  967.  
  968. Description
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975. xxx Description to be supplied.
  976.  
  977.  
  978.  
  979.  
  980.  
  981. Applies to
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988. string
  989.  
  990.  
  991.  
  992.  
  993.  
  994. Examples
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001. xxx Examples to be supplied.
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007. See also
  1008.  
  1009.  
  1010.  
  1011.  
  1012. charAt, lastIndexOf methods
  1013.  
  1014.  
  1015. ------------------------------------------------------------------------
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021. italics method
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029. Causes the calling string object to be italicized by surrounding it with HTML italics tags,   <I>... <I>
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036. Syntax
  1037.  
  1038.  
  1039.  
  1040.  
  1041. italics()
  1042.  
  1043. NOTE: For Beta4, use I() for this method.
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049. Description
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056. xxx Description to be supplied.
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062. Applies to
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069. string
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075. Examples
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082. xxx Examples to be supplied.
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088. See also
  1089.  
  1090.  
  1091.  
  1092.  
  1093. blink, bold, strike methods
  1094.  
  1095.  
  1096. ------------------------------------------------------------------------
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102. lastIndexOf method
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110. Returns the index within the calling string object of the last occurrence of the specified character. The calling string is searched backwards, starting at fromIndex.
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117. Syntax
  1118.  
  1119.  
  1120.  
  1121.  
  1122. indexOf(character, [fromIndex])
  1123.  
  1124.  
  1125.  
  1126. character is the character to search for.
  1127.  
  1128. fromIndex is the location within the calling string to start the search from, any integer from 0 to string.length() - 1.
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134. Description
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141. xxx Description to be supplied.
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147. Applies to
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154. string
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160. Examples
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167. xxx Examples to be supplied.
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173. See also
  1174.  
  1175.  
  1176.  
  1177.  
  1178. charAt, indexOf methods
  1179.  
  1180.  
  1181. ------------------------------------------------------------------------
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187. link method
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195. Causes the calling string object to be a hyperlink by surrounding it with HTML hyperlink tags,  <A HREF=...><A>
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201. Syntax
  1202.  
  1203.  
  1204.  
  1205.  
  1206. link(location)
  1207.  
  1208. The argument to the method, location, should be a valid URL.
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214. Description
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221. xxx Description to be supplied.
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227. Applies to
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234. string
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240. Examples
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247. xxx Examples to be supplied.
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253. See also
  1254.  
  1255.  
  1256.  
  1257.  
  1258. anchor method
  1259.  
  1260.  
  1261. ------------------------------------------------------------------------
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267. log method
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275. Returns the natural logarithm (base e) of its argument.
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281. Syntax
  1282.  
  1283.  
  1284.  
  1285.  
  1286. log(arg)
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293. Applies to
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300. Math
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306. Examples
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313. xxx Examples to be supplied.
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319. See also
  1320.  
  1321.  
  1322.  
  1323.  
  1324. exp method
  1325.  
  1326.  
  1327. ------------------------------------------------------------------------
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333. max method
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341. Returns the greater of its two arguments.
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347. Syntax
  1348.  
  1349.  
  1350.  
  1351.  
  1352. max(arg1, arg2)
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359. Applies to
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366. Math
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372. Examples
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379. xxx Examples to be supplied.
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385. See also
  1386.  
  1387.  
  1388.  
  1389.  
  1390. min method
  1391.  
  1392.  
  1393. ------------------------------------------------------------------------
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399. min method
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407. Returns the lesser of its two arguments.
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413. Syntax
  1414.  
  1415.  
  1416.  
  1417.  
  1418. min(arg1, arg2)
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425. Applies to
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432. Math
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438. Examples
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445. xxx Examples to be supplied.
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451. See also
  1452.  
  1453.  
  1454.  
  1455.  
  1456. max method
  1457.  
  1458.  
  1459. ------------------------------------------------------------------------
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465. open method
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473. For the window object, opens a new web browser window. xxx For the document object, description to be supplied.
  1474.  
  1475.  
  1476.  
  1477.  
  1478.  
  1479. Syntax
  1480.  
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486. The first form of the syntax is for the document object; the second form is for window.
  1487. 1. document.open("MIME type")
  1488. 2. window.open("URL", "windowName", ["windowFeatures"])
  1489.  
  1490.  
  1491.  
  1492.  
  1493. URL specifies the URL to open in the new window.
  1494.  
  1495. windowName specifies a name for the window object being opened.
  1496.  
  1497. windowFeatures is a comma-separated list of any of the following options and values:
  1498.  
  1499.    toolbar[=yes|no]|[=1|0]
  1500.    location[=yes|no]|[=1|0]
  1501.    directories[=yes|no]|[=1|0]
  1502.    status[=yes|no]|[=1|0]
  1503.    menubar[=yes|no]|[=1|0]
  1504.    scrollbars[=yes|no]|[=1|0]
  1505.    resizable[=yes|no]|[=1|0]
  1506.    copyhistory[=yes|no]|[=1|0]
  1507.    width=pixels
  1508.    height=pixels
  1509.  
  1510.  
  1511.  
  1512.  
  1513. You may use any subset of these options.  Separate options with a comma.
  1514. Do not put spaces between the options.
  1515.  
  1516.  
  1517. pixels is a positive integer specifying the dimension in pixels.
  1518.  
  1519.  
  1520.  
  1521. NOTE:
  1522. In event handlers, you must specify window.open() unless you want to call document.open()
  1523. because of the scoping of static objects in JavaScript.
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529. Description for window
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536. The open method opens a new web browser window on the client, similar to choosing File|New Web Browser from the menu of the Navigator. The URL argument specifies the URL contained by the new window. If URL is an empty string, a new, empty window is created.
  1537.  
  1538.  
  1539.  
  1540. windowFeatures is an optional, comma-separated list of options for the new window. The boolean windowFeatures options are set to true if they are specified without values, or as yes or 1. For example, open("", "messageWindow", "toolbar") and open("", "messageWindow", "toolbar=1") both set the toolbar option to true. If windowName does not specify an existing window and you do not specify windowFeatures, all boolean windowFeatures are true by default.
  1541.  
  1542.  
  1543.  
  1544. Following is a description of the windowFeatures:
  1545. toolbar creates the standard Navigator toolbar, with buttons such as "Back" and "Forward", if true
  1546. location creates a Location entry field, if true
  1547. directories creates the standard Navigator directory buttons, such as "What's New" and "What's Cool", if true
  1548. status creates the status bar at the bottom of the window, if true
  1549. menubar creates the menu at the top of the window, if true
  1550. scrollbars creates horizontal and vertical scrollbars when the document grows larger than the window dimensions, if true
  1551. resizable allows a user to resize the window, if true
  1552. copyhistory gives the new window the same session history as the current window, if true
  1553. width specifies the width of the window in pixels
  1554. height specifies the height of the window in pixels
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560. Description for document
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567. Description to be supplied.
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573. Applies to
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580. document, window
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586. Examples
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593. In the following example, the windowOpener function opens a window and uses write methods to display a message:
  1594. function windowOpener() {
  1595.    msgWindow=open("","Display window","toolbar=no,directories=no,menubar=no");
  1596.    msgWindow.document.write("<HEAD>ltTITLE>Message window<TITLE>lt/HEAD>);
  1597.    msgWindow.document.write("<CENTER>ltBIG>ltB>Hello, world!<B>lt/BIG>lt/CENTER>);
  1598. }
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604. The following is an onClick event handler that opens a new client window displaying
  1605. the content specified in the file sesame.html.
  1606. It opens it with the specified option settings and
  1607. names the corresponding window object newWin.
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613. <FORM NAME="myform">
  1614. <INPUT TYPE="button" NAME="Button1" VALUE="Open Sesame!" 
  1615. onClick="window.open('sesame.html', 'newWin', 
  1616. 'toolbar=no,directories=no,menubar=no,status=yes,width=300,height=300')">
  1617. </form>
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627. Notice the use of single quotes (') inside the onClick event handler.
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634. See also
  1635.  
  1636.  
  1637.  
  1638.  
  1639. close method
  1640.  
  1641.  
  1642. ------------------------------------------------------------------------
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648. parse method
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657. Syntax
  1658.  
  1659.  
  1660.  
  1661.  
  1662. Date.parse(date string)
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669. Description
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677. The parse function takes a date string (such as "Dec 25, 1995"), and returns the number
  1678. of milliseconds since January 1, 1970 00:00:00 (local time).
  1679. This function is useful for setting date values based on string values,
  1680. for example in conjunction with the setTime method.
  1681.  
  1682.  
  1683.  
  1684. Given a string representing a time, parse returns the time value. It accepts 
  1685. the IETF standard date syntax: "Mon, 25 Dec 1995 13:30:00 GMT". 
  1686. It understands the continental US time zone abbreviations, but for general use, 
  1687. use a time zone offset, for example "Mon, 25 Dec 1995 13:30:00 GMT+0430" 
  1688. (4 hours, 30 minutes west of the Greenwich meridian). If you do not specify a time zone,
  1689. the local time zone is assumed. GMT and UTC are considered equivalent. 
  1690.  
  1691.  
  1692.  
  1693.  
  1694. The parse function is a static method of Date.  That means that you always use it as
  1695. Date.parse(), rather than as a method of a date object you created.
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701. Applies to
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708. Date
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714. Examples
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722. If IPOdate is an existing date object, then 
  1723.  
  1724. IPOdate.setTime(Date.parse("Aug 9, 1995"))
  1725.  
  1726.  
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732. See also
  1733.  
  1734.  
  1735.  
  1736.  
  1737. UTC method
  1738.  
  1739.  
  1740. ------------------------------------------------------------------------
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746. pow method
  1747.  
  1748.  
  1749.  
  1750.  
  1751.  
  1752.  
  1753.  
  1754. Returns arg1 to the arg2 power, i.e. arg1arg2.
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760. Syntax
  1761.  
  1762.  
  1763.  
  1764.  
  1765. pow(arg1, arg2)
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772. Applies to
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779. Math
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785. Examples
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792. xxx Examples to be supplied.
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798. See also
  1799.  
  1800.  
  1801.  
  1802.  
  1803. sqrt method
  1804.  
  1805.  
  1806. ------------------------------------------------------------------------
  1807.  
  1808.  
  1809.  
  1810.  
  1811.