Hi

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Luis

    Hi

    Hi all,

    I'm newbie in JavaScrit, and I want to disable "ctrl + u". I could do
    it in the Internet Explorer, But It didn't work in Netscape

    My code is:

    <html>
    <head>
    <script language="javas cript">
    function onkeydown(){
    var pressedKey = String.fromChar Code(event.keyC ode).toLowerCas e;
    if (event.ctrlKey && (pressedKey == "c"))
    event.returnVal ue = false;
    }
    </script>
    </head>

    <body onkeydown="java script:onkeydow n()">
    <form name="aForm">
    <input type="text" name="aText" onkeydown=onKey Down()>
    </form>
    </body>
    </html>

    Any suggestion???

    Thanks in advance.
  • David Dorward

    #2
    Re: Hi

    Luis wrote:[color=blue]
    > I'm newbie in JavaScrit, and I want to disable "ctrl + u".[/color]

    Why?



    --
    David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is

    Comment

    • kaeli

      #3
      Re: Hi

      In article <d47k9c$jnh$1$8 302bc10@news.de mon.co.uk>, dorward@yahoo.c om
      enlightened us with...[color=blue]
      > Luis wrote:[color=green]
      > > I'm newbie in JavaScrit, and I want to disable "ctrl + u".[/color]
      >
      > Why?
      >
      > http://output.dorward.me.uk.local//www/hide/
      >
      >[/color]

      The system detected an Unresolved Host Name while attempting to retrieve the
      URL: http://output.dorward.me.uk.local//www/hide/.

      --
      --
      ~kaeli~
      Experience is something you don't get until just after you
      need it.



      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: Hi

        Luis wrote:
        [color=blue]
        > I'm newbie in JavaScrit, and I want to disable "ctrl + u". [...][/color]

        No, you won't.


        PointedEars
        --
        Wunder sind nicht immer Geheimnisse.
        -- J. W. Goethe

        Comment

        Working...