Short of client side encryption, no.
Your browser will always know what was typed into it.
If the Dev tools are closed and inactive when submitting, nothing SHOULD be recorded.
Obviously, if you want the card number to be secure during transit to the servelet, you should be using SSL.