Results 1 to 12 of 12

Thread: Javascript for right clicking?

  1. #1
    Join Date
    Jun 2002
    Location
    iran
    Posts
    12
    Rep Power
    0

    Question Javascript for right clicking?

    can i have the script for right clicking? can anybody help me?

  2. #2
    Join Date
    Jun 2002
    Location
    Subang Jaya
    Posts
    25
    Rep Power
    0
    <script language="JavaScript">
    function onClick(){
    if(event.button == 2){
    alert('You Cannot make Right Click');
    }
    }
    </script>

    <body onmousedown="onClick()">

  3. #3
    Join Date
    Jun 2002
    Location
    iran
    Posts
    12
    Rep Power
    0
    thanx :]

  4. #4
    Join Date
    Jun 2002
    Location
    iran
    Posts
    12
    Rep Power
    0
    tak jadik pon.. what could i be doing wrong? where should i put the script?

  5. #5
    Join Date
    Jun 2002
    Location
    Subang Jaya
    Posts
    25
    Rep Power
    0
    <html>
    <head>
    bla bla bla...
    <head>
    <script language="JavaScript">
    function onClick(){
    if(event.button == 2){
    alert('You Cannot make Right Click');
    }
    }
    </script>
    </head>
    <body bla bla bla...>

    </body>
    </html>

  6. #6
    Join Date
    Jul 2001
    Location
    Jail
    Posts
    228
    Rep Power
    221
    selain guna jscript, kita boleh disablekan terus right klik pada body

    contoh:

    <body bgcolor="#848484" leftmargin=0 marginwidth=0 topmargin=0 marginheight=0 topmargin=0 marginheight=0 leftmargin=0 marginwidth=0 bgproperties="fixed" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">

  7. #7
    Join Date
    Mar 2002
    Location
    KL
    Posts
    95
    Rep Power
    210
    suppose to be dah jadi la tu... 2-2 aku try okey jer

  8. #8
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    273
    kalau yang rightclick ada keluar menu tuh camner aaa?

  9. #9
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    28
    Rep Power
    0
    tak jadi la.. nak paste kat ner ah?
    CripperZ TechnologieZ CrewZ

  10. #10
    Join Date
    Mar 2003
    Location
    Kamunting, Perak
    Posts
    640
    Rep Power
    209
    right-click keluar menu? tu DHTML kot....

    http://www.dhtmlshock.com/sitenaviga...nu/default.asp

  11. #11
    Join Date
    Sep 2003
    Location
    PJ
    Posts
    346
    Rep Power
    197
    alah..kalo right click tak leh pon kalo view source bleh gak..kekek.
    ada tak yg tak leh view source code?
    Affordable Virtual Office Provider
    Business Address From RM20 per month

  12. #12
    Join Date
    Jun 2003
    Location
    Papar, Sabah
    Posts
    266
    Rep Power
    199
    hehehe... tekan je "kekunci" sebelah lambang Windows kat keyboard tuh.. masih jugak keluar menu mcm right click!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. javascript + php
    By niurexx in forum Website Programming
    Replies: 0
    Last Post: 08-12-2008, 08:52 AM
  2. Replies: 1
    Last Post: 20-04-2008, 04:09 PM
  3. GAin money by clicking ad....is it ethical?
    By azanurul in forum E-Commerce
    Replies: 3
    Last Post: 03-03-2008, 12:33 AM
  4. Adsense: Malicious person(s) clicking on my ads to get me kicked out
    By gilachess in forum Revenue and Monetization
    Replies: 7
    Last Post: 20-12-2006, 05:21 PM
  5. javascript + php
    By tenuk in forum Website Programming
    Replies: 3
    Last Post: 11-12-2006, 09:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32