Sign Up to our social questions and Answers to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers to ask questions, answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How to Hide API key in Javascript
When you need to hide the API key in JS you have to define the key as "Password" and on the click event of a button if you need to show that password value set "Text" on button click event. Suppose you visit login page of gmail. When you type your password it shows like "*********" in this format bRead more
When you need to hide the API key in JS you have to define the key as “Password” and on the click event of a button if you need to show that password value set “Text” on button click event.
Suppose you visit login page of gmail.
When you type your password it shows like “*********” in this format but when you click on an eye button it shows your password.
So what you need to do in this case when you define such area or something please defined the type as Password and when you want to show that particular set the type as Text on a button click event.
See less