codice:
<html>
<head>
<script type="text/javascript" language="JavaScript">
<!--
function replaceQuotes( __hForm )
{
for (var i=0; i < __hForm.elements.length; i++)
{
if ( __hForm.elements[i].type == "text" || __hForm.elements[i].type == "textarea" )
__hForm.elements[i].value = __hForm.elements[i].value.replace( /’/g, "'");
}
}
//-->
</script>
</head>
<body>
<form onsubmit=" replaceQuotes( this ); ">
<input type="text" />
<input type="text" />
<input type="text" />
<input type="text" />
<input type="text" />
<input type="text" />
<textarea></textarea>
<input type="submit" />
</body>
</html>