'indexOf()' Example : indexOf « Javascript Methods « JavaScript Reference
- JavaScript Reference
- Javascript Methods
- indexOf
'indexOf()' Example
<html>
<body>
<button onclick="var myS = new String('Sample String');
alert(myS.indexOf('String'));">
call string indexOf method
</button>
</body>
</html>
Related examples in the same category