<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Word And Length Count</title>
<script src="calculateWordsandlength.js"></script>
</head>
<body>
<table width="500" border="0">
<tr>
<td width="170"><label>Insert Your Sentence</label></td>
<td width="160"><input name="sentence" id="sentence" type="text" size="50" /></td>
</tr>
<tr>
<td></td>
<td><input type="button" id="sentbtn" value="Calculate Words" onclick="calculateWordsandlength()"/></td>
</tr>
<tr>
<td><label><strong>Number of words</strong></label></td>
<td><label id="status1"> </label></td>
</tr>
<tr>
<td><label><strong>Words </strong></label></td>
<td><label id="status2"> </label></td>
</tr>
</table>
</body>
</html>
function calculateWordsandlength(){
var sentence = document.getElementById('sentence').value;
sentence = sentence.replace(/(^\s*)|(\s*$)/gi,"");
sentence = sentence.replace(/[ ]{2,}/gi," ");
var letters = /[A-Za-z]/;
if(sentence.match(letters))
{
var num = sentence.split(' ').length;
document.getElementById('status1').innerHTML = num;
var wordArray = sentence.split(" ");
for(var word in wordArray){
document.getElementById('status2').innerHTML += (wordArray[word])+",";
}
return true;
}
else
{
alert('Please insert a valid sentence');
return false;
}
}


මචන්ලා මම xampp server එක දැම්ම ඒක වඩා කලේ නැහැනේ. ඊට පස්සේ wamp server එක දැම්මා. ඒක වඩා කලෙත් නැහැ.
පස්සේ මම machine එක format කලා. අද තමයි වැඩ ඉවර වුනේ.![]()
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My Web Page</title>
</head>
<body>
<h2>Welcome to my web page</h2>
</body>
</html>
මචන්ලා මම xampp server එක දැම්ම ඒක වඩා කලේ නැහැනේ. ඊට පස්සේ wamp server එක දැම්මා. ඒක වඩා කලෙත් නැහැ.
පස්සේ මම machine එක format කලා. අද තමයි වැඩ ඉවර වුනේ.![]()
)<html>
<head>
<title> Hello elakiri world </title>
</head>
<body> <p align ="center"> This is my first HTML document </p> </body>
</html>



elakiri මචන්Ela Ela Macho
Add More Macho
Meke Patan Gaththa Ewa Kalekin Missing Wenawane
Ehema Epa Apith Sup Eka Dennam Karagena Yamu



එළකිරි මචෝ.....ඕන්න ඉතිං දන්න විදිහට මමත් සම්මාදන් වෙන්නං............
අපේ KPZ සහෝදරයාගේ මහන්සියත් අගේකොට සලකනවා...............
වැරදි ඇත්නම් නිවැරදි කරන ලෙසද ඉල්ලා සිටිනවා...........
![]()
![]()
අපි ආවාgura na

skype online thiyenawa nam server start wenne ne..port 80 use wena nisa..nathnam IIS run wenawanam eth wada karanne ne....skype exit karala...service wala IIS stop karala balanna.....nathnam wamp wala run wena ports change karanam wada...(meke waradi thiyenawa nam kiyanna)
මම එහෙම බැලුව මචන්.... ඉස්සර skype තියෙද්දිත් වැඩ කලා බන්. මම machine එක format කරලා skype install කරන්නත් කලින් xampp දාලා බැලුව.ඒත් වැඩ නැහැ බං. wamp වැඩත් නැහැ. අන්තිමට EasyPHP දැම්මා. ඒක වැඩ මචන්. දැන් shape වැඩේ.


anyway machan meka mega thread ekak karamu...ela machan wada nam....IIS eka check kalada ban..mage IIS stop kalama hari yanawa...anyway machan meka mega thread ekak karamu...