|
a)Create a form with name "txtchk" and place a textbox & call it by name "mytextarea"
Ex:- <form name ="txtchk">
<input type="text" name="mytextarea" size="30" value="1 2 2 3 3 4 4 5 5 5"></form>
b)Create a button with name and call the function delrepeat(mytextarea)by using onclick event.
Ex- <input type="button" value="Remove Duplicates" onclick="delrepeat(mytextarea)"
>
c)Now just copy the above free javascript code in your web page inside the head tag.
|