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>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.