<html>
<body>
<script type="text/javascript">
var str = "W3CSchools is great!"
document.write(str.match("great"))
</script>
<p>This example tests if a string contains a specified word. If the word is
found it returns the word.</p>
</body>
</html>
0 komentar:
Posting Komentar