More Event Handlers – OnFormChange

Not sure but my other post was buggin out. Must be the script or the ck editor that keeps adding the p tag.

At any rate let's carry on with the onformchange event handler. – coming soon…



	<input id="myinputbox" onformchange="somethingfishy();" />  
        Enter your name
	<script>

	function somethingfishy(){

	var x = document.getElementById("myinputbox");
     
         if(x.value == " Badword "){
	 
        x.value ==" try again ";

      }
   }
	</script>
Share on FacebookShare on Google+Pin on PinterestShare on RedditTweet about this on TwitterShare on TumblrShare on LinkedInEmail this to someonePrint this page

Leave a Reply