How to hide form code from view code/inspect element browser?

前端 未结 13 2235
深忆病人
深忆病人 2020-11-29 01:15

I want to hide form code from view code/inspect element browser , how can i do that ?

This is my code, please see below:

13条回答
  •  执念已碎
    2020-11-29 02:01

    if someones is interested you can delete the form node from the DOM after the submission and it won't be there using the inspector.

    https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/remove

提交回复
热议问题