[ Pobierz całość w formacie PDF ]
.Exception: if you list nowindow options and you omit windowName, all options are true.open() returns a window object reference.prompt (message)prompt (message, inputDefault)Displays a dialog box that displays message and receives user input.InputDefault is the default value.If you do not specify inputDefault, the browser displays the value <undefined>.prompt returns the textentered by the user.SetTimeout (expression, time)Evaluates expression after time milliseconds.setTimeout returns a timer ID that can be used in a call to clearTimeout().The window object can have two event handlers:onLoadExecuted when a window or all frames in a frameset have finished loading.OnUnloadExecuted when the user exits the window.Built-in functionsJavaScript provides six built-in functions.These functions areunrelated to the built-in objects.escape (string)string is a string in the ISO Latin-1 character set.Returns a string.escape() converts nonalphanumeric characters in string to the form %xx, where xx is the hexadecimal representation of the character's value.escape() passes alphanumeric characters in string to the returnstring intact.eval (string)string is a string containing a JavaScript statement or expression or sequence of statements.Evaluates string and returns a value.isNan (value)value is a value returned from parseFloat() or parseInt().Returns true if value is NaN.NaN is a special value returned by parseFloat() and parseInt() to indicate that the evaluated value is not a number.parseFloat() and parseInt() do not return NaN in Windows platforms.parseFloat (string)string is a string representing a numric value.Returns the floating-point number that string represents.It stops parsing string when it encounters a character that is not part of a valid numeric expression.parseFloat() returns NaN (not a number), under all platformsexcept Windows, if it cannot create a valid floating-point number.parseFloat() returns 0 under Windows when it cannot create a valid floating-point number.parseInt (string) or parseInt (string, radix)string is a string representing a numeric value.radix is a nonnegative integer.Returns the integer that string, in the specified radix, represents.The browser guesses a radix if you omit radix or specify a value of 0.The browser assumes a value of 16 if string begins with 0x, 8 ifstring begins with 0, and 10 if string begins with any other digit.JavaScript assumes that letters are digits, such as A-F for a radix of 16, when radix is greater than 10.parseInt() returns NaN (not a number), under all platformsexcept Windows, if it cannot create a valid floating-point number.ParseInt() returns 0 under Windows when it cannot create a valid floating-point number.Unescape (string)string is a string that contains sequences of "%number", where number is a value from 0 to 255, or "0xnumber", where number is a hexadecimal valuefrom 00 to FF.Returns a string with the escaped values in string converted to ISO Latin-1 characters
[ Pobierz całość w formacie PDF ]