HTML 3_Menguji apakah string berisikan karakter tertentu, dengan match()

<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>
Category: 0 komentar

0 komentar:

Posting Komentar