46 users online (0 members and 46 guests)  

Thread: no right click


  Results 1 to 8 of 8

Related

  1. Click- and rollover example    Forum: Javascript Forum
    Replies: 4
  2. no right click    Forum: HTML Forum
    Replies: 2
  3. How do I disable right-click?    Forum: Website Scripts Forum
    Replies: 9
  4. No right click    Forum: HTML Forum
    Replies: 3
  5. No right click!!!!!!!!!    Forum: Javascript Forum
    Replies: 7
  1. #1
    rskull69's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2001
    Posts
    8

    Post no right click

    can someone tell me how to stop right clicks on my web page??


    Thanks

  2. #2
    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

    Post

    You cannot completely stop people from viewing your code. This will stop the right click function though.

    Insert this between your <head> and </head> tags


    <script language="javascript">
    function noRightClick() {
    if (event.button==2) {
    alert('Insert your text here.')
    }
    }
    document.onmousedown=noRightClick
    </script>

  3. #3
    PHPboy's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jun 2001
    Location
    Australia
    Posts
    29

    Post

    actually Iv have been to sites where i couldn't get to the view src function under the right click menu or view menu.....but i don't know how to do it

  4. #4
    Allyn's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Aug 2000
    Location
    Calgary, Canada
    Posts
    93

    Post

    Then all you do is go File --> Save As, and save it to your HD to view later.

    ------------------
    Allyn -

  5. #5
    Allyn's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Aug 2000
    Location
    Calgary, Canada
    Posts
    93

    Post

    good point, but it isn't fun digging around in there.

    ------------------
    Allyn -

  6. #6
    QuietDean's Avatar
    Administrator

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

    Post

    What IS fun in Windows?

    Bill Gates can eat my shorts.

    ------------------
    QuietDean-

  7. #7
    rskull69's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2001
    Posts
    8

    Talking

    Originally posted by rskull69:
    can someone tell me how to stop right clicks on my web page??


    Thanks
    thanks for the help Dave and everyone else !!

  8. #8
    QuietDean's Avatar
    Administrator

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

    Post

    Point to remember: If you are trying to stop someone saving your images, then even the thickest of people will eventually realise that if they can see it, its already on their HD.

    Temporary Internet Files.....

    ------------------
    QuietDean-



Tags for this Thread