Article View: chile.comp.programacion
Article #407Re: ayuda con javascript
From: Rickoj
Date: Thu, 12 Mar 2009 16:35
Date: Thu, 12 Mar 2009 16:35
42 lines
2208 bytes
2208 bytes
Jos� Miguel Santib��ez wrote:
> En el cap�tulo anterior (news:gp9d01$bmf$1@news.nivel5.cl), "Rick_oj"
> <rick_oj[sin-esto]@tutopia.com> dijo:
>
>> 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
>
> Define "no funciona"... �no aparece el c�digo en el fuente al verlo
> en el browser? �aparece pero no hace nada?
no hace lo que tiene que hacer, osea si presionas f5 no sale la alerta
funciona intermitente, ayer despues funciono y hoy no
>
>> <script>
>
> Idea <script type="text/javascript">
>
>
>> 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:
<gpbdk2$j2v$1@news.nivel5.cl>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mailReferences:
<gp9d01$bmf$1@news.nivel5.cl> <Xns9BCC1366CC638jmsnews@200.54.144.211>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!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail From: "Rick_oj" <rick_oj[sin-esto]@tutopia.com> Newsgroups: chile.comp.programacion Subject: Re: ayuda con javascript Date: Thu, 12 Mar 2009 13:35:14 -0300 Organization: Varios Lines: 44 Message-ID: <gpbdk2$j2v$1@news.nivel5.cl> References: <gp9d01$bmf$1@news.nivel5.cl> <Xns9BCC1366CC638jmsnews@200.54.144.211> NNTP-Posting-Host: pc-72-180-120-200.cm.vtr.net X-Trace: news.nivel5.cl 1236875714 19551 200.120.180.72 (12 Mar 2009 16:35:14 GMT) X-Complaints-To: news@news.nivel5.cl NNTP-Posting-Date: Thu, 12 Mar 2009 16:35:14 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Antivirus: avast! (VPS 090311-1, 11/03/2009), Outbound message X-Antivirus-Status: Clean