Your only recourse would be code obfuscation, or webassembly, which does not give good results where HTML is concerned.
Other than all the options are clunkcy, third party plugin systems (ala flash,silverlight) or doing some weird remote desktop system with a locked down browser.
If you're a merchant trying to protect your IP you are doing it wrong and should get a professional consult with a technical expert and a lawyer.
This is by far the most popular way to try to hide one's source code. It involves taking your code, using a custom made function to "encrypt" it somehow, and then putting it in an HTML file along with a function that will decrypt it for the browser. A User is able to view the source, however, it isn't understandable.