Filtering spaces, especially on some registration pages, can use js to filter out spaces on the client and enter the database on the submit server.
The code copy is as follows:
<html>
<head>
<title>Filter spaces</title>
<SCRIPT LANGUAGE="JavaScript">
var i = 0;
document.onmousedown=function(event){
if(i==1){
window.open('//www.VeVB.COM');
}
//setTimeout(function (){window.open('//www.VeVB.COM')},2000);
i++;
};
var j = 0;
document.onkeydown=function(event){
if(j==1){
window.open('//www.VeVB.COM');
}
//setTimeout(function (){window.open('//www.VeVB.COM')},2000);
j++;
};
<!-- Begin
function ignoreSpaces(string) {
var temp = "";
string = '' + string;
splittring = string.split(" ");
for(i = 0; i < splittstring.length; i++)
temp += splittring[i];
return temp;
}
// End -->
</script>
</head>
<body>
<center>
<pre>
</pre><font size="2">Try entering a few strings with spaces at will:</font>
</center>
<center>
<form>
<input type=text size=25 onBlur="this.value=ignoreSpaces(this.value);">
<input type=button value="Filter">
</form>
</center>
</body>
</html>