Javascript
<!-- Script by hscripts.com -->
<!-- Copyright of HIOX INDIA -->
<!-- More scripts @ http://www.hscripts.com -->
<script language=javascript>
var r={'special':/[\W]/g}
function valid(o,w)
{
o.value = o.value.replace(r[w],'');
}
</script>
<!-- Script by hscripts.com -->
HTML Code
<!-- Script by hscripts.com -->
<form id="myform">
Enter the strings and numbers.It donot accept special characters like $,%,#,@ etc,but accept underscore<br><br>
<center><input type="text" size="25" name="comments" onkeyup="valid(this,'special')" onblur="valid(this,'special')"><br><br></center>
<div align=center>©<a href="http://www.hscripts.com" style=color: #3D366F;text-decoration:none;cursor:pointer;font-size:13px">hscripts.com</a></div>
</form>
<!-- Scripts by hscripts.com -->
Release Date - 07-04-2008
Get free version without ©copyright link for just
5
|