arun_mrk Posted April 14, 2003 Posted April 14, 2003 I dont want users to use 'view source' menu for my webpages. how can i do this? Quote
Moderators Robby Posted April 14, 2003 Moderators Posted April 14, 2003 There are ways to do this using using JavaScript, but it is not full-proof. A couple of Right-Click disable samples http://www.w3schools.com/js/tryit.asp?filename=tryjs_noright http://www.w3schools.com/js/tryit.asp?filename=tryjs_noright2 Quote Visit...Bassic Software
steved Posted April 14, 2003 Posted April 14, 2003 Can I ask why? If it's ASP.net-related, there may be a more effective solution... Quote zig?
Moderators Robby Posted April 14, 2003 Moderators Posted April 14, 2003 Steve, this may answer why, sort of. :) http://www.xtremedotnettalk.com/showthread.php?s=&threadid=71426 Quote Visit...Bassic Software
*Gurus* Derek Stone Posted April 14, 2003 *Gurus* Posted April 14, 2003 If that is in fact the reason why you want to prevent the user from viewing the page's source I strongly suggest you remove the value attribute of the password textbox instead. There is no reason for that attribute to be present in the first place, and it shocks me as to why current browsers even support it. Quote Posting Guidelines
steved Posted April 14, 2003 Posted April 14, 2003 Asleep at the wheel... didn't even realize the 2 posts were from the same guy. :) Thanks for pointing that out, Robby. Agreed, Derek. Quote zig?
Moderators Robby Posted April 14, 2003 Moderators Posted April 14, 2003 yeah I noticed it after I had already replied. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.