I want to hide javascript code shown using 'view source' ...I know one way of doing it by keeping it in an external file .js but I don't want to keep the javascript file as an external file.
Can you please help me , if you know how to this?
Thanks in advance.
The views expressed on this page by users and staff are their own, not those of NamePros.
You can make it a little harder for someone to read, but technically it is impossible to hide javascript. The reason is that it runs in the browser so the browser must be able to read it. But if the browser can read it, anyone can read it.