<input id='input' type='text' onchange='prov()'>
<script type='text/javascript'>
var reg = /(http\:\/\/)|(https\:\/\/)|(file\:\/\/\/)|(ftp\:\/\/)/img;
function prov(){
input = document.getElementById("input");
input.value = input.value.replace(reg,"");
}
</script>