All Forums >> [Scripting] >> WSH & Client Side VBScript >> How to disable 'View Source' menu/popup menu in IE Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Posts: 9
Score: 0
Joined: 6/9/2001
From: USA
Status: offline
hello all im developing a testing system for a college based on HTML 4.0 & VBScript & ASP. problem is this that i want to disable the 'view source' popup menu item as well as 'view source' menu item in 'View menu of IE5.0, but i couldn't do this. can somebody help me??????
function returnFalse() { return false; } document.oncontextmenu = returnFalse;
they won't have a way to easily view the source. IF you combine it with nested frames, you can make it a bit harder, but remember that someone can always find a way to see the source!
BTW, this is a javascript solution, but you can easily adapt it to VBScript or use it as is.
Posts: 9
Score: 0
Joined: 6/9/2001
From: USA
Status: offline
thank u, it really works, but i've done this before. its a simple task to disable the whole popup-menu. u didn't read my problem carefully, i want that the popup-menu appears but only the 'View Source' menu-item (i used the word menu-item) is disable. ok so if u solve the problem then i really grateful to u....