47 users online (1 members and 46 guests)  


  Results 1 to 10 of 10

Related

  1. Disable the Save Function    Forum: HTML Forum
    Replies: 3
  2. How to disable buttons in HTML?    Forum: Website Scripts Forum
    Replies: 4
  3. Help in disable copy & print    Forum: HTML Forum
    Replies: 5
  1. #1
    SurgePc's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2004
    Posts
    2

    Talking How do I disable right-click?

    Yo, listen I know there is many ways to get around copying images without right-click, but at least this will prevent noobs from getting the pics. So if you know the scripts please post it. Thanks....SurgePc

  2. #2
    haystack's Avatar

    Status
    Offline
    Join Date
    Feb 2004
    Location
    Minneapolis, MN
    Posts
    13
    Do a search on Google for:

    right click javascript

    To find plenty of examples. Here's one:
    http://www.dynamicdrive.com/dynamicindex9/noright.htm

  3. #3
    pcross's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2004
    Posts
    6

    Lightbulb no right click

    This is one that I use. It has no warning pop-up window. It simply prevents them from right clicking on a page.
    Code:
    <script type="text/javascript" language="JavaScript1.2"> 
    <!-- // Begin
    //Disable right click script
    //no alert
    
    var message="";
    ///////////////////////////////////
    function clickIE() {if (document.all) {(message);return false;}}
    function clickNS(e) {if 
    (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers) 
    {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    
    document.oncontextmenu=new Function("return false")
    //  End -->
    </script>
    This doesn't stop anyone who knows enough, but it will frustrate the newbies!

  4. #4
    ClaireS's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2004
    Location
    Orlando
    Posts
    1

    Lightbulb Lol

    course it will lol!

  5. #5
    SurgePc's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2004
    Posts
    2
    How do i enter that in to my site i tried, and i didnt work.

  6. #6
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    place the code between the <head> and the </head> tags.

    Dave

  7. #7
    Country Girl's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2004
    Posts
    1

    No Right Click

    How Do I Disable Right Click On My Webpage?

  8. #8
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Use the code above Welcome to the forums.

    If you have any trouble with the code, please start your own thread for it.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  9. #9
    lordnathan's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2005
    Posts
    1
    hello
    i need html which allows me to logg of any body who right click twice from my web

  10. #10
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi,

    Please start your own thread. Hijacking other peoples just causes confusion.

    Locking this one.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread