Methods (S)
A method is a function that is a member of an object. Following are methods whose names begin with the letter s.
In This Section
search Method
Returns the position of the first substring match in a regular expression search.setDate Method
Sets the numeric date of the Date object using local time.setFullYear Method
Sets the year value in the Date object using local time.setHours Method
Sets the hour value in the Date object using local time.setMilliseconds Method
Sets the milliseconds value in the Date object using local time.setMinutes Method
Sets the minutes value in the Date object using local time.setMonth Method
Sets the month value in the Date object using local time.setSeconds Method
Sets the seconds value in the Date object using local time.setTime Method
Sets the date and time value in the Date object.setUTCDate Method
Sets the numeric date in the Date object using Coordinated Universal Time (UTC).setUTCFullYear Method
Sets the year value in the Date object using Coordinated Universal Time (UTC).setUTCHours Method
Sets the hours value in the Date object using Coordinated Universal Time (UTC).setUTCMilliseconds Method
Sets the milliseconds value in the Date object using Coordinated Universal Time (UTC).setUTCMinutes Method
Sets the minutes value in the Date object using Coordinated Universal Time (UTC).setUTCMonth Method
Sets the month value in the Date object using Coordinated Universal Time (UTC).setUTCSeconds Method
Sets the seconds value in the Date object using Coordinated Universal Time (UTC).setYear Method
Sets the year value in the Date object.shift Method
Removes the first element from an array and returns it.sin Method
Returns the sine of a number.slice Method (Array)
Returns a section of an array.slice Method (String)
Returns a section of a string.small Method
Places HTML <SMALL> tags around text in a String object.sort Method
Returns an Array object with the elements sorted.splice Method
Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.split Method
Returns the array of strings that results when a string is separated into substrings.sqrt Method
Returns the square root of a number.strike Method
Places HTML <STRIKE> tags around text in a String object.sub Method
Places HTML <SUB> tags around text in a String object.substr Method
Returns a substring beginning at a specified location and having a specified length.substring Method
Returns the substring at a specified location within a String object.sup Method
Places HTML <SUP> tags around text in a String object.
Related Sections
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.