Don't reject this answer because it's not what you want to hear: it's the correct answer...
You cannot hide your HTML or Javascript source from viewers on the web. End of statement. Period.
To answer your specific question, can you disableor hide the "View" item from the main menu...the answer is simply No. Netscape does not provide an API to anything other than the document. There is a navigator object, and you'll notice that virtually everything in it is read-only. There is no API to manipulate the menu. Check the Netscape Javascript documentation at http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm.
Likewise, it is not possible to manipulate the main menu in Internet Explorer. Unlike Netscape, IE does provide an API to the Explorer object. However, this API does not provide any accessibility or setter methods that deal with main menus (it does give control over context menus). To see the documentation on this, I suggest that you go to the MSDN Web Workshop at http://msdn.microsoft.com/library/default.asp?url=/workshop/entry.asp.
If you are successfully able to disable the "View" menu in IE (which I don't know how to do and I'm a pretty talented Javascript and VBScript programmer), what if the user is using Netscape? Disable it in both IE and Netscape, I'll fire up Opera. Or Lynx. If you manage to disable the view source function of every browser I have, then I'll just look in my cache for the HTML page. If you make the page uncacheable, then I'll just telnet to port 80 of your web server and type GET / HTTP/1.1, hit return twice, and get all the HTML source I want from you site. Come to think of it, what if I just turn off Javascript? There is NOTHING you can do to hide your source.
Save yourself the trouble and don't try to hide your web source.
Jay Eckles
www.jayeckles.com