-
April 11th, 2002, 12:33 AM
#1
Disable "Show Source" script
Does anyone know a javascript that disables the "Show Source" option in IE. I've searched through some sites but I couldn't find one. Thnx.
-
April 11th, 2002, 01:00 AM
#2
Here you are:
<script language="javascript">
function noRightClick() {
if (event.button==2) {
alert('You can NOT Right-Click on this page -- but you CAN Left-Click.')
}
}
document.onmousedown=noRightClick
</script>
-------------
Instructions:
-------------
Paste the JavaScript segment above into the header of your page.
(That is, between the <HEAD> and </HEAD> tags.
Change the message in the alert() call from our message
('You can NOT Right-Click on this page -- but you CAN Left-Click.')
to whatever you wish to appear in the alert box.
-
April 11th, 2002, 01:33 AM
#3
<script language="javascript">
function noRightClick() {
if (event.button==2) {
alert('You can NOT Right-Click on this page -- but you CAN Left-Click.')
}
}
document.onmousedown=noRightClick
</script>
ummmm all that does is disbale the right click function but by going to view > source you can still see the web-sites source code
I know the code ur talking about tho Sick Dwarf as have seen it on a couple of web-pages....but as the code hides the source I couldn't rip it
I'll take a look about see if i can dig it up if i can I'll post it for you
v_Ln
-
April 11th, 2002, 03:58 AM
#4
-
April 11th, 2002, 10:33 PM
#5
I already have the disable rightclick script, but not disable view source. By the way, is there also a code to disable it in Netscape?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|