JavaScript Reference/Javascript Methods/charAt
Версия от 18:30, 25 мая 2010; (обсуждение)
"charAt()" Example
<html>
<body>
<button onclick="var myS = new String("Sample String");
alert(myS.charAt(3));">get char at</button>
</body>
</html>
"charAt()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |String |
+----------------+--------------------------------------------------------------+
"charAt()" Syntax, Parameters and Note
Note:
Returns the character at the specified index in string.
Syntax:
stringName.charAt(param1)
Parameters:
param1 Required; the index position of the character.