I'm not sure how this could be implemented.
JavaScript can access user input fields to do many things such as updated display or provide rich editing features, and it can communicate with the server.
I think either scripts running on the page can react to input into the page or not. Perhaps some scripts should not have internet access? How is this enforceable? I'm not sure how we could build a wall around input fields without breaking many useful features because there are many legitimate reasons that a script would want to react to user input.