Bagikan melalui


Methods (F-I)

A method is a function that is a member of an object. Following are methods whose names begin with letters f through i.

In This Section

  • fixed Method
    Places HTML <TT> tags around text in a String object.

  • floor Method
    Returns the greatest integer less than or equal to its numeric argument.

  • fontcolor Method
    Places an HTML <FONT> tag with the COLOR attribute around the text in a String object.

  • fontsize Method
    Places an HTML <FONT> tag with the SIZE attribute around the text in a String object.

  • fromCharCode Method
    Returns a string from a number of Unicode character values.

  • getDate Method
    Returns the day of the month value in a Date object using local time.

  • getDay Method
    Returns the day of the week value in a Date object using local time.

  • getFullYear Method
    Returns the year value in the Date object using local time.

  • getHours Method
    Returns the hours value in a Date object using local time.

  • getItem Method
    Returns the item at the specified location.

  • getMilliseconds Method
    Returns the milliseconds value in a Date object using local time.

  • getMinutes Method
    Returns the minutes value stored in a Date object using local time.

  • getMonth Method
    Returns the month value in the Date object using local time.

  • getSeconds Method
    Returns seconds value stored in a Date object using local time.

  • getTime Method
    Returns the time value in a Date object.

  • getTimezoneOffset Method
    Returns the difference in minutes between the time on the host computer and Coordinated Universal Time (UTC).

  • getUTCDate Method
    Returns the date value in a Date object using Coordinated Universal Time (UTC).

  • getUTCDay Method
    Returns the day of the week value in a Date object using Coordinated Universal Time (UTC).

  • getUTCFullYear Method
    Returns the year value in a Date object using Coordinated Universal Time (UTC).

  • getUTCHours Method
    Returns the hours value in a Date object using Coordinated Universal Time (UTC).

  • getUTCMilliseconds Method
    Returns the milliseconds value in a Date object using Coordinated Universal Time (UTC).

  • getUTCMinutes Method
    Returns the minutes value in a Date object using Coordinated Universal Time (UTC).

  • getUTCMonth Method
    Returns the month value in a Date object using Coordinated Universal Time (UTC).

  • getUTCSeconds Method
    Returns the seconds value in a Date object using Coordinated Universal Time (UTC).

  • getVarDate Method
    Returns the VT_DATE value in a Date object.

  • getYear Method
    Returns the year value in a Date object. (This method is obsolete; use the getFullYear method instead.)

  • hasOwnProperty Method
    Returns a Boolean value indicating whether an object has a property with the specified name.

  • indexOf Method
    Returns the character position where the first occurrence of a substring occurs within a String object.

  • isFinite Method
    Returns a Boolean value that indicates if a supplied number is finite.

  • isNaN Method
    Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).

  • isPrototypeOf Method
    Returns a Boolean value indicating whether an object exists in another object's prototype chain.

  • italics Method
    Places HTML <I> tags around text in a String object.

  • item Method
    Returns the current item in the collection.

  • JScript Reference
    Lists elements that comprise JScript Language Reference and links to topics that explain the details behind the proper use of language elements.

  • Methods
    Lists the methods, classified alphabetically, available in JScript, and links to each category of methods.

  • Objects
    Explains the concept of objects in JScript, how objects are related to properties and methods, and links to topics that provide more detail about the objects that JScript supports.