Html How Can I Execute Type Function When Erase Function

Html How Can I Execute Type Function When Erase Function