🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #408

Re: ayuda con javascript

#408
From: Mauricio Gomez
Date: Thu, 12 Mar 2009 19:02
40 lines
1749 bytes
<body onKeyDown="javascrip:Verificar()">

no ser�

<body onKeyDown="javascript:Verificar()">

?


rro


Rick_oj escribi�:
> tengo un codigo javascript que previene que presiones el f5 y el boton 
> derecho del mouse
> cuando lo pruebo solo, funciona, pero lo inserto en un php y no funciona
> 
> <script>
>  function Verificar()
>  {
>   var tecla=window.event.keyCode;
>   if (tecla==116) {
>   alert("Funciones deshabilitadas"); event.keyCode=0;
> event.returnValue=false;
>       }
>  }
> 
> function derecha(e) {
> if (event.button == 2) {
> alert("Funciones deshabilitadas");
>         }
> }
> document.onmousedown=derecha
> </SCRIPT>
> </head>
> <body onKeyDown="javascrip:Verificar()">
> 
> alguna solucion de que pueda ser?
> 
> 
Technical Details
Message-ID: <gpbm98$k66$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
References: <gp9d01$bmf$1@news.nivel5.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,e363173fbca84e78
X-Google-Attributes: gid1593cb,domainid0,public,usenet
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
From: Mauricio Gomez <pregunte@sileinteresa.com>
Newsgroups: chile.comp.programacion
Subject: Re: ayuda con javascript
Date: Thu, 12 Mar 2009 16:02:55 -0300
Organization: Varios
Lines: 40
Message-ID: <gpbm98$k66$1@news.nivel5.cl>
References: <gp9d01$bmf$1@news.nivel5.cl>
NNTP-Posting-Host: pc-19-70-104-200.cm.vtr.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.nivel5.cl 1236884585 20678 200.104.70.19 (12 Mar 2009 19:03:05 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Thu, 12 Mar 2009 19:03:05 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
In-Reply-To: <gp9d01$bmf$1@news.nivel5.cl>