0% found this document useful (0 votes)
19 views

Advance Javascript Sop

Uploaded by

sohamraut26viiid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Advance Javascript Sop

Uploaded by

sohamraut26viiid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

~

exPERIMEN •; LL-d -

~
C~j

L..head>

I .-aU!Jlw,:
!
,/
·1
.I
I

I
I
EXPE RIME NT: IN o.l
L_ _J
we\'b.d-fon'' "(oJ.ut c u CbU n l ,, e:rn cJJ
~ -: "ckc:ot v~

111!:.1--,n
~n'11a-;.blue;background-colo
"> r:yellow">

l lllian-"cen
ter">Progran, to cou nt Number of
~E nt er the stri ng: </b > vowels in a given t . I
<input type=="text"name="sl •~b s nng ~l:: .
r>
<b>Number of vow els: <lb >
<in put typ e=" tex t"na me= " ans
1
"><br>
<in put typ e=" but ton"va lue=
<in put typ e=" rese t"va lue= " "co unt"onclick="Vowels 1O">
<lf onn > clear">
t
I
<sc rip t typ e=" text /jav asc ript
">
fun ctio n Vow els1O .:::: :'o'
{ == 'I'
var i,str,len,vow=O;
str= doc ume nt.f l .s I .value; .t
len= str.length;
for(i=O;i<len;i++)
{

ifts tr(i ]='a 'lls tr[.]_


1 - .e 'llstr • ='i' llst r[i] ='o
'llst r[i] -'u' llst r[1]
==' O'l lstr [i]= 'U')

='A I llstrrJ='E
i 'llstr[i]=-'l'llstrlil .,
'I
"''s >
{ Ll ho >
vow++; <.l h
}

!oc um ent .fl .ans.value=vow;


}
</s crip t> tI .'
</b ody >
-</h tml >

h17 r<i >


1

~
I
, EXPERIME
l<T :

1Je~tR \V"fl()N

--t---
------
------
-----

You might also like