Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
You can disable the right mouse button click by using a little piece of JavaScript
Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
Originally posted by Andy Bowes:
You can disable the right mouse button click by using a little piece of JavaScript see here for an example Codelifter.com - norightclick
I think disabling the menu option is a bit harder. You could try using a frameset which only includes a single frame that has the source as your page then when the user clicks on the View/Source option they would only see the source code of your frameset. [NB You would also need a bit of JavaScript at the top of your page to ensure that the users cannot view it without going through the frameset i.e. check the parent of the current window]
I personally don't like doing this as the Right Mouse button is used for more than just viewing the source code but if it is essential for you application give it a try.
HTH
Andy Bowes
Stuff that is displayed on a browser is open source.....The way it should be....My 2 Cents
Eric
"JavaRanch, where the deer and the Certified play" - David O'Meara
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |