function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
tulasi ram 1tulasi ram 1 

how to hide password in inspect or DOM elements

<input id="pwd" name="pwd" placeholder="Password" type="password" value="abc123" aria-invalid="false" class="valid">
Password is showing in different places like network preserve log, inspect elements.
this is the situation which i am facing in inspect elements. How to hide the password element or value in DOM elements. Please help me in this
Dinesh GopalakrishnanDinesh Gopalakrishnan
Hi Tulasi Ram,

View source is a representation of static HTML, so if you create any element dynamically, it will not be displayed in view source.

I Hope the below Link will help you.
https://stackoverflow.com/questions/34430911/hiding-password-field-content-from-users
https://jsfiddle.net/RajeshDixit/u3g72byk/

Kindly Mark this as a Best Answer if you Find this Useful!

Thanks
DineshKumar Gopalakrishnan​
ProlayProlay
It might not be possible. For more information, you can view this article https://stackoverflow.com/questions/34430911/hiding-password-field-content-from-users
ProlayProlay
@dinesh, The question is related to the password field value which most of the time will be static HTML. So the creation of dynamic HTML is not applied here.